setBorrowPause

params of borrowPauseParams -> storage with [ tokens[tokenId] with [ borrowPause ] ]

(Un)Pauses borrowing token from the market.

Types

type borrowPauseParams  is [@layout:comb] record [
  tokenId               : nat;
  condition             : bool;
]
Parameter
Type
Description

tokenId

nat

token identifier

condition

bool

True to pause else False

Usage

const tokenId = 0; // or new BigNumber(0) or "0"
const yupana = await tezos.contract.at(yTokenAddress);
const operation = await yupana.methods.setBorrowPause(
    tokenId, 
    true // to pause or false to unpause
).send();
await operation.confirmation();

Errors

  • yToken/not-admin - sender is not contract admin.

Last updated