setCoefficients
param of setCoeffParams -> storage with params
type setCoeffParams is [@layout:comb] record [
kinkF : nat;
baseRateF : nat;
multiplierF : nat;
jumpMultiplierF : nat;
]Sets params values to corresponding values at storage.
Usage
const interest = await tezos.contract.at(interestModelAddress);
const operation = await interest.methods.setCoefficients(
800000000000000000,
634195839,
7134703196,
31709791983
).send();
await operation.confirmation();interest = ContractInterface.from_michelson(code) # or client.contract(contract_address)...
call = interest.setCoefficients(
kinkF = 800000000000000000,
baseRateF = 634195839,
multiplierF = 7134703196,
jumpMultiplierF = 31709791983
)
opg = call.inject()Last updated