ERC-20 Compliance and Updates

ERC-20 Compliance and Updates

All standard EIP-20 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 EIP-20 method with the exception of the available balance check and the cumulativeYield refresh.

Last updated