🀹Manage entrypoints

This section contains documentation about managing Yupana protocol contract.

Entrypoints

setGlobalFactors

Updates closeFactorF, liqIncentiveF, priceFeedProxy, maxMarkets storage values.

setGlobalFactorschevron-right

addMarket

Allow creating a new market with binded yToken.

addMarketchevron-right

setTokenFactors

Updates collateralFactorF, reserveFactorF, interestRateModel, maxBorrowRate, threshold values of yToken by provided tokenId.

setTokenFactorschevron-right

setBorrowPause

Start/stop borrowing for some token by it's tokenId.

setBorrowPausechevron-right

withdrawReserve

Withdraws token admin rewards from the market. Receives tokenId related to reserves and amount of tokens to withdraw.

withdrawReservechevron-right

setAdmin

A classic method for changing contract admin address.

setAdminchevron-right

updateMetadata

Updates metadata of yToken related to passed tokenId.

updateMetadatachevron-right

Last updated