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 marketUsage
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();token_id = 0
yupana = ContractInterface.from_michelson(code) # or client.contract(contract_address)...
call = yupana.updateInterest(token_id)
opg = call.inject()Errors
yToken/yToken-undefined- token identifier is not assigned to any known yTokens.yToken/cant-get-interestRate-contract(getBorrowRate)- couldn't findgetBorrowRateentrypoint ofinterestRatecontact address.
Last updated