setGlobalFactors
params of setGlobalParams -> storage upd
Sets global factor constants to storage.
Types
type setGlobalParams is [@layout:comb] record [
closeFactorF : nat;
liqIncentiveF : nat;
priceFeedProxy : address;
maxMarkets : nat;
]
Parameter
Type
Description
closeFactorF
nat
close factor
as float number multiplied by precision
= 1000000000000000000n; (1e+18)
liqIncentiveF
nat
liquidation incentive
as float number multiplied by precision
= 1000000000000000000n; (1e+18)
interestRateModel
address
priceFeed proxy contract instance
maxMarkets
nat
maximum amount of markets allowed to enter and borrow
Usage
const tokenId = 0; // or new BigNumber(0) or "0"
const yupana = await tezos.contract.at(yTokenAddress);
const proxyContractAddress = "KT1..."
const operation = await yupana.methods.setGlobalFactors(
"500000000000000000",
"1050000000000000000",
proxyContractAddress,
"2",
).send();
await operation.confirmation();
Errors
yToken/not-admin
-sender
is not contract admin.
Last updated