web3wagmi
← All standards

ERC-5115 SY Token

DraftERCcreated 2022-05-30requires ERC-20

Interface for wrapped yield-bearing tokens.

Authors: Vu Nguyen (@mrenoon), Long Vuong (@UncleGrandpa925), Anton Buenavista (@ayobuenavista)

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

IStandardizedYield0x17a61177

Functions this standard introduces (11)

0x313ce567decimals()view
0xdb6f344cdeposit(address,address,uint256,uint256,bool)
0x3ba0b9a9exchangeRate()view
0x213cae63getTokensIn()view
0x071bc3c9getTokensOut()view
0x06fdde03name()view
0xb8f82b26previewDeposit(address,uint256)view
0xcbe52ae3previewRedeem(address,uint256)view
0x769f8e5dredeem(address,uint256,address,uint256,bool)
0x95d89b41symbol()view
0x76d5de85yieldToken()view

Events (2)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0x5fe47ed6d4225326d3303476197d782ded5a4e9c14f479dc9ec4992af4e85d59Deposit(address,address,address,uint256,uint256)
0xaee47cdf925cf525fdae94f9777ee5a06cac37e1c41220d0a8a89ed154f62d1cRedeem(address,address,address,uint256,uint256)

Depends on (1)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion