updateInterest

nat -> op(InterestRate.getBorrowRate) -> op(yToken.accrueInterest)

Updates interest rates for passed tokenId by call InterestRate contract. Expect callback to accrueInterest.

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 find getBorrowRate entrypoint of interestRate contact address.

Last updated