ERC-20 Compliance and Updates
Last updated
Last updated
All standard methods are implemented for KIBT, such as balanceOf
, transfer
, transferFrom
, approve
, totalSupply
.
However, the underlying logic of some of those methods differs from EIP20 standards to fit an interest bearing token behavior :
balanceOf
will always return the most up to date balance of the user, which includes their principal balance (baseBalance
) + the yield generated by the principal balance up to the last epoch timestamp.
totalSupply
will always return the most up to date total supply of KIBTokens, which includes the principal supply + the yield generated by the principal balance up to the last epoch timestamp.
Transfers behave mostly like the standard method with the exception of the available balance check and the cumulativeYield
refresh.