updateInterest
nat -> op(InterestRate.getBorrowRate) -> op(yToken.accrueInterest)
Updates interest rates for passed tokenId
by call InterestRate
contract. Expect callback to accrueInterest.
This and PriceFeed.getPrice methods should be called before Lending methods call in the same block.
Types
type tokenId of nat // yToken tokenId related to market
Usage
const tokenId = 0; // or new BigNumber(0) or "0"
const yupana = await tezos.contract.at(yTokenAddress);
const operation = await yupana.methods.updateInterest(tokenId).send();
await operation.confirmation();
Errors
yToken/yToken-undefined
- token identifier is not assigned to any known yTokens.yToken/cant-get-interestRate-contract(getBorrowRate)
- couldn't findgetBorrowRate
entrypoint ofinterestRate
contact address.
Last updated