Skip to main content

IKashiPair

Functions

DOMAIN_SEPARATOR

function DOMAIN_SEPARATOR() external returns (bytes32)

accrue

function accrue() external

accrueInfo

function accrueInfo() external returns (uint64 interestPerSecond, uint64 lastBlockAccrued, uint128 feesEarnedFraction)

addAsset

function addAsset(
address to,
bool skim,
uint256 share
) external returns (uint256 fraction)

Parameters

NameTypeDescription
toaddress
skimbool
shareuint256

addCollateral

function addCollateral(
address to,
bool skim,
uint256 share
) external

Parameters

NameTypeDescription
toaddress
skimbool
shareuint256

allowance

function allowance(
address ,
address
) external returns (uint256)

Parameters

NameTypeDescription
``address
``address

approve

function approve(
address spender,
uint256 amount
) external returns (bool)

Parameters

NameTypeDescription
spenderaddress
amountuint256

asset

function asset() external returns (contract IERC20)

balanceOf

function balanceOf(
address
) external returns (uint256)

Parameters

NameTypeDescription
``address

borrow

function borrow(
address to,
uint256 amount
) external returns (uint256 part, uint256 share)

Parameters

NameTypeDescription
toaddress
amountuint256

claimOwnership

function claimOwnership() external

collateral

function collateral() external returns (contract IERC20)

cook

function cook(
uint8[] actions,
uint256[] values,
bytes[] datas
) external returns (uint256 value1, uint256 value2)

Parameters

NameTypeDescription
actionsuint8[]
valuesuint256[]
datasbytes[]

decimals

function decimals() external returns (uint8)

exchangeRate

function exchangeRate() external returns (uint256)

feeTo

function feeTo() external returns (address)

init

function init(
bytes data
) external

Parameters

NameTypeDescription
databytes

isSolvent

function isSolvent(
address user,
bool open
) external returns (bool)

Parameters

NameTypeDescription
useraddress
openbool

masterContract

function masterContract() external returns (address)

name

function name() external returns (string)

nonces

function nonces(
address
) external returns (uint256)

Parameters

NameTypeDescription
``address

oracleData

function oracleData() external returns (bytes)

owner

function owner() external returns (address)

pendingOwner

function pendingOwner() external returns (address)

permit

function permit(
address owner_,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external

Parameters

NameTypeDescription
owner_address
spenderaddress
valueuint256
deadlineuint256
vuint8
rbytes32
sbytes32

removeAsset

function removeAsset(
address to,
uint256 fraction
) external returns (uint256 share)

Parameters

NameTypeDescription
toaddress
fractionuint256

removeCollateral

function removeCollateral(
address to,
uint256 share
) external

Parameters

NameTypeDescription
toaddress
shareuint256

repay

function repay(
address to,
bool skim,
uint256 part
) external returns (uint256 amount)

Parameters

NameTypeDescription
toaddress
skimbool
partuint256

setFeeTo

function setFeeTo(
address newFeeTo
) external

Parameters

NameTypeDescription
newFeeToaddress

symbol

function symbol() external returns (string)

totalAsset

function totalAsset() external returns (uint128 elastic, uint128 base)

totalBorrow

function totalBorrow() external returns (uint128 elastic, uint128 base)

totalCollateralShare

function totalCollateralShare() external returns (uint256)

totalSupply

function totalSupply() external returns (uint256)

transfer

function transfer(
address to,
uint256 amount
) external returns (bool)

Parameters

NameTypeDescription
toaddress
amountuint256

transferFrom

function transferFrom(
address from,
address to,
uint256 amount
) external returns (bool)

Parameters

NameTypeDescription
fromaddress
toaddress
amountuint256

transferOwnership

function transferOwnership(
address newOwner,
bool direct,
bool renounce
) external

Parameters

NameTypeDescription
newOwneraddress
directbool
renouncebool

updateExchangeRate

function updateExchangeRate() external returns (bool updated, uint256 rate)

userBorrowPart

function userBorrowPart(
address
) external returns (uint256)

Parameters

NameTypeDescription
``address

userCollateralShare

function userCollateralShare(
address
) external returns (uint256)

Parameters

NameTypeDescription
``address

withdrawFees

function withdrawFees() external

Events

Approval

event Approval(
address _owner,
address _spender,
uint256 _value
)

Parameters

NameTypeDescription
_owneraddress
_spenderaddress
_valueuint256

LogAccrue

event LogAccrue(
uint256 accruedAmount,
uint256 feeFraction,
uint64 rate,
uint256 utilization
)

Parameters

NameTypeDescription
accruedAmountuint256
feeFractionuint256
rateuint64
utilizationuint256

LogAddAsset

event LogAddAsset(
address from,
address to,
uint256 share,
uint256 fraction
)

Parameters

NameTypeDescription
fromaddress
toaddress
shareuint256
fractionuint256

LogAddCollateral

event LogAddCollateral(
address from,
address to,
uint256 share
)

Parameters

NameTypeDescription
fromaddress
toaddress
shareuint256

LogBorrow

event LogBorrow(
address from,
address to,
uint256 amount,
uint256 part
)

Parameters

NameTypeDescription
fromaddress
toaddress
amountuint256
partuint256

LogExchangeRate

event LogExchangeRate(
uint256 rate
)

Parameters

NameTypeDescription
rateuint256

LogFeeTo

event LogFeeTo(
address newFeeTo
)

Parameters

NameTypeDescription
newFeeToaddress

LogRemoveAsset

event LogRemoveAsset(
address from,
address to,
uint256 share,
uint256 fraction
)

Parameters

NameTypeDescription
fromaddress
toaddress
shareuint256
fractionuint256

LogRemoveCollateral

event LogRemoveCollateral(
address from,
address to,
uint256 share
)

Parameters

NameTypeDescription
fromaddress
toaddress
shareuint256

LogRepay

event LogRepay(
address from,
address to,
uint256 amount,
uint256 part
)

Parameters

NameTypeDescription
fromaddress
toaddress
amountuint256
partuint256

LogWithdrawFees

event LogWithdrawFees(
address feeTo,
uint256 feesEarnedFraction
)

Parameters

NameTypeDescription
feeToaddress
feesEarnedFractionuint256

OwnershipTransferred

event OwnershipTransferred(
address previousOwner,
address newOwner
)

Parameters

NameTypeDescription
previousOwneraddress
newOwneraddress

Transfer

event Transfer(
address _from,
address _to,
uint256 _value
)

Parameters

NameTypeDescription
_fromaddress
_toaddress
_valueuint256