๐Ÿ“–
Yupana Document Portal
  • Introduction
    • What is Yupana.Finance?
    • Participants
    • FAQ
  • Lending
    • Supplying assets
      • General
    • Borrowing assets
      • General
  • Liquidation
  • Liquidity Risk
    • Yupana Interest Rate
  • โš™๏ธDeveloper space
    • yToken contract methods
      • ๐Ÿ“„Storage overview
      • accrueInterest
      • priceCallback
      • updateInterest
      • ๐Ÿ”ตLending methods
        • borrow
        • enterMarket
        • exitMarket
        • liquidate
        • mint
        • redeem
        • repay
      • ๐Ÿ”ตFA2 Token entrypoints
        • balance_of
        • get_total_supply
        • transfer
        • update_operators
      • ๐Ÿ›‘Admin methods
        • ๐Ÿ“ฅSetup entrypionts
          • setTokenAction
          • setUseAction
        • ๐ŸคนManage entrypoints
          • addMarket
          • setAdmin
          • setBorrowPause
          • setGlobalFactors
          • setTokenFactors
          • updateMetadata
          • withdrawReserve
    • InterestRate contract
      • ๐Ÿ”ตOn-chain views
        • getBorrowRate
        • getSupplyRate
        • getUtilizationRate
      • ๐Ÿ›‘Admin methods
        • setCoefficients
        • updateAdmin
    • PriceFeed contract
      • getPrice
      • receivePrice
      • ๐Ÿ›‘Admin methods
        • setProxyAdmin
        • updateOracle
        • updatePair
        • updateYToken
  • Agreements
    • Terms of Service
    • Privacy Policy
    • Cookie Policy
Powered by GitBook
On this page
  1. Developer space
  2. InterestRate contract
  3. Admin methods

setCoefficients

param of setCoeffParams -> storage with params

PreviousAdmin methodsNextupdateAdmin

Last updated 3 years ago

varF params that multiplied by precision passed in

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()
โš™๏ธ
๐Ÿ›‘
rateParams