The oracle contains information about DeFi protocols. You can access a quotation of the current lending and borrowing rates and the as well as the timestamp of the last update.
Access our oracle smart contract.
Call getCoinInfo(protocol_name)
with protocol_name
being the full protocol name in capital letters, such as COMPOUND
. You can use the "Read" section on Etherscan to execute this call.
The response of the call contains four values:
The lending rate with a fix-comma notation of five decimals.
The borrowing rate with a fix-comma notation of five decimals.
The UNIX timestamp of the last oracle update.
The short name of the asset under consideration, e.g., DAI
for Compound Protocol.