Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article covers ERC5115, which defines a new token standard called Standardized Yield (SY) to provide a common way of handling yield-bearing tokens in decentralized finance (DeFi).

This article translates, summarizes, and expands on the specification below.

I also cover a range of EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.

Overview

ERC5115 proposes an API for wrapping yield-bearing tokens for use in smart contracts. The API extends ERC20, the standard for basic token transfers and balance management, and supports:

  • Token transfers (transfer)
  • Deposits (deposit)
  • Withdrawals (withdraw)
  • Balance queries (balance reading)

Rather than merely transferring tokens, the interface provides a safe, consistent way to work with tokens that generate yield.

Motivation

Yield-generating mechanisms vary across protocols, each with its own implementation. Consequently, a protocol that wants to use a yield mechanism built on another protocol has traditionally required manual integration work for each mechanism.

ERC4626 was introduced to address this problem. It defines a common interface for yield-generating mechanisms in the vault category, allowing developers to integrate them efficiently.

For background on ERC4626, see the following article.

[ERC4626] Understanding the Tokenized Vault Standard for Earning Rewards on Assets

However, ERC4626 does not cover every case. ERC5115 aims to fill that gap and support a broader range of assets and mechanisms.

Examples of assets not covered by ERC4626

Assets whose deposit token differs from their unit of valuation

Some yield-bearing assets use different tokens for minting and for representing the total value of the pool. For example, liquidity tokens in an automated market maker (AMM) earn yield through swap fees, but their value is expressed in liquidity units. These units are not actual tokens, so they cannot be directly deposited as in ERC4626. For instance, Uniswap V2 liquidity tokens are valued using the mechanism defined in its white paper.

ERC5115 accommodates such cases more flexibly. An ETH vault could, for example, accept cETH (the token issued when ETH is deposited into Compound) directly instead of ETH to reduce gas costs or improve usability.

Assets that accrue reward tokens

Protocols such as Compound distribute reward tokens (for example, COMP) alongside interest on deposited assets. ERC5115 is designed to support standardized handling of these rewards, such as selling them and reinvesting the proceeds in the underlying asset. Further extensions could also accommodate multiple reward tokens at once.

Why a new standard is needed

ERC4626 is well suited to many vaults and is expected to remain a mainstream standard. However, greater flexibility is needed in cases such as:

  • Non-vault yield-bearing assets, including LP (liquidity provider) tokens.
  • Protocols with different deposit and valuation mechanisms.
  • Assets that require complex reward-token handling.

Standardized Yield (SY) is proposed as a way to cover these cases comprehensively.

Purpose and role of Standardized Yield (SY)

SY is a flexible standard intended to provide a unified way to handle yield-generating mechanisms across DeFi.

SY tokens have the following characteristics:

Feature Description
ERC20 extension Retains basic operations such as transfers and balance queries while standardizing deposits and withdrawals
ERC4626 compatibility Can act as a layer on top of an ERC4626 vault
Flexible integration Can wrap and handle arbitrary yield-bearing assets
Extensibility Can be extended to handle reward tokens

Outlook

ERC4626 is expected to remain a standard for vaults.

  • SY tokens can handle various yield-bearing assets, including ERC4626 vaults, through a common interface, improving interoperability across DeFi.
  • Developers can use existing SY tokens or implement new ones to wrap their chosen assets.
  • Reward-token handling and support for multiple rewards may also be standardized in the future.

Specification

Generic yield-generating pools

First, consider the GYGP (Generic Yield Generating Pool) model, a common framework for describing many DeFi yield-generating mechanisms.

Every yield-generating mechanism in this model has a pool of funds. The pool receives liquidity from multiple users and issues shares in return. Shares represent ownership of the pool. As the value of the pool grows over time, the value of each share also increases. The pool also earns certain reward tokens and distributes them to users.

GYGP terminology

Term Description
asset The unit used to measure the pool's value. The total value at time tt is TotalAsset(t).
shares Units representing ownership of the pool. Total shares at time tt are TotalShares(t).
reward tokens Additional reward tokens earned by the pool over time.
exchange rate The ratio indicating how many assets one share represents at time tt.
users The shares held by each user u, together with the corresponding asset value and total reward tokens.

Example state transitions

  1. When a user deposits assets, new shares are issued and allocated to that user.
  2. As the pool earns yield, its total assets increase, raising the exchange rate.
  3. When the pool earns reward tokens, rewards are distributed to users.

Examples of GYGPs in DeFi

Yield-generating mechanism Asset Shares Reward tokens Exchange rate
Depositing USDC into Compound USDC cUSDC COMP USDC value per 1cUSDC (increases with interest)
Staking ETH with Lido stETH wstETH None stETH value per 1wstETH (increases with rewards)
Staking LOOKS on LooksRare LOOKS shares WETH LOOKS value per 1share (increases with rewards)
Providing ETH + USDC liquidity on SushiSwap ETH + USDC liquidity SLP tokens None ETHUSDC value per 1SLP (increases with swap fees)
Providing USDC + USDT + DAI to Curve's 3crv pool 3crv liquidity 3crv tokens CRV Liquidity value per token (increases with swap fees)

Standardized yield token standard

Overview

Standardized Yield (SY) is a token standard for yield-generating mechanisms based on the GYGP model. Each SY token represents shares in a GYGP and enables interaction with that pool through a unified interface.

SY token requirements

Requirement Details
ERC20 implementation SY tokens must implement ERC20 to represent shares.
Metadata implementation Implement name, symbol, and decimals to reflect information about the underlying GYGP asset.
Optional ERC2612 implementation May be implemented to improve the token approval experience.
Transfer restrictions Some SY tokens may be non-transferable, in which case calls to transfer or transferFrom revert.

Additional SY definitions

Term Description
input tokens Tokens that can be converted into assets when entering the pool. An SY may support multiple input tokens.
output tokens Tokens into which assets can be converted when exiting the pool. An SY may support multiple output tokens.

Interface specification

IStandardizedYield

javascript
interface IStandardizedYield {
    event Deposit(
        address indexed caller,
        address indexed receiver,
        address indexed tokenIn,
        uint256 amountDeposited,
        uint256 amountSyOut
    );

    event Redeem(
        address indexed caller,
        address indexed receiver,
        address indexed tokenOut,
        uint256 amountSyToRedeem,
        uint256 amountTokenOut
    );

    function deposit(
        address receiver,
        address tokenIn,
        uint256 amountTokenToDeposit,
        uint256 minSharesOut,
        bool depositFromInternalBalance
    ) external returns (uint256 amountSharesOut);

    function redeem(
        address receiver,
        uint256 amountSharesToRedeem,
        address tokenOut,
        uint256 minTokenOut,
        bool burnFromInternalBalance
    ) external returns (uint256 amountTokenOut);

    function exchangeRate() external view returns (uint256 res);

    function getTokensIn() external view returns (address[] memory res);

    function getTokensOut() external view returns (address[] memory res);

    function yieldToken() external view returns (address);

    function previewDeposit(address tokenIn, uint256 amountTokenToDeposit)
        external
        view
        returns (uint256 amountSharesOut);

    function previewRedeem(address tokenOut, uint256 amountSharesToRedeem)
        external
        view
        returns (uint256 amountTokenOut);

    function name() external view returns (string memory);

    function symbol() external view returns (string memory);

    function decimals() external view returns (uint8);
}

Function specification

deposit
javascript
function deposit(
    address receiver,
    address tokenIn,
    uint256 amountTokenToDeposit,
    uint256 minSharesOut,
    bool depositFromInternalBalance
) external returns (uint256 amountSharesOut);

Deposits assets and issues SY tokens. The caller deposits amountTokenToDeposit of tokenIn and receives the corresponding SY shares. When using an internal balance (depositFromInternalBalance = true), the amount is deducted directly; otherwise, the usual approve/transferFrom flow is used. The function must revert on failure conditions such as insufficient approval or slippage.

Parameters

  • receiver Address receiving the shares.
  • tokenIn Address of the input token to deposit.
  • amountTokenToDeposit Amount of tokens to deposit.
  • minSharesOut Minimum expected SY shares.
  • depositFromInternalBalance Flag indicating whether to deposit from the internal balance.

Return value

  • amountSharesOut Amount of SY shares issued.
redeem
javascript
function redeem(
    address receiver,
    uint256 amountSharesToRedeem,
    address tokenOut,
    uint256 minTokenOut,
    bool burnFromInternalBalance
) external returns (uint256 amountTokenOut);

Redeems SY shares to receive underlying assets or output tokens. The specified shares are burned, and the recipient receives assets converted into tokenOut. When using an internal balance (burnFromInternalBalance = true), shares are burned directly from it. The function must revert on invalid conditions such as insufficient approval or excessive slippage.

Parameters

  • receiver Address receiving the output tokens.
  • amountSharesToRedeem Amount of SY shares to redeem.
  • tokenOut Address of the output token.
  • minTokenOut Minimum expected output amount.
  • burnFromInternalBalance Flag indicating whether to burn directly from the internal balance.

Return value

  • amountTokenOut Actual output amount received.
exchangeRate
javascript
function exchangeRate() external view returns (uint256 res);

Returns the latest exchange rate between SY shares and assets. This ratio converts an amount of SY tokens into an amount of assets. It is expressed using a scaling factor of 1e18. Internal fees are not included.

Return value

  • res Current exchange rate.
getTokensIn
javascript
function getTokensIn() external view returns (address[] memory res);

Returns the input tokens accepted by the SY contract. It returns all available deposit token addresses. The list must contain at least one token, and the function must not fail.

Return value

  • res List of accepted input token addresses.
getTokensOut
javascript
function getTokensOut() external view returns (address[] memory res);

Returns the tokens that the SY contract can output. It lists all token addresses to which assets can be converted upon withdrawal. The list must contain at least one token.

Return value

  • res List of output token addresses.
yieldToken
javascript
function yieldToken() external view returns (address);

Returns the address of the original yield-bearing token wrapped by the SY token. It returns the underlying token address (ERC20 compatible) corresponding to the GYGP. An SY that does not wrap a token may return the zero address.

Return value

  • address Address of the underlying yield-bearing token.
previewDeposit
javascript
function previewDeposit(address tokenIn, uint256 amountTokenToDeposit)
    external
    view
    returns (uint256 amountSharesOut);

Estimates the SY shares expected to be issued for a deposit. It simulates the number of shares that would be received by calling deposit under the specified conditions. It must not return a value greater than the actual result.

Parameters

  • tokenIn Address of the token used for the deposit.
  • amountTokenToDeposit Amount of tokens to deposit.

Return value

  • amountSharesOut Expected amount of SY shares.
previewRedeem
javascript
function previewRedeem(address tokenOut, uint256 amountSharesToRedeem)
    external
    view
    returns (uint256 amountTokenOut);

Estimates the amount of tokens received on redemption. It simulates the output amount when the specified number of shares is redeemed. It must not return a value greater than the actual result.

Parameters

  • tokenOut Address of the output token.
  • amountSharesToRedeem Amount of SY shares to redeem.

Return value

  • amountTokenOut Expected output amount.

Events

Deposit
javascript
event Deposit(
    address indexed caller,
    address indexed receiver,
    address indexed tokenIn,
    uint256 amountDeposited,
    uint256 amountSyOut
);

Emitted when tokens are converted into SY and the SY tokens are sent to the recipient. It must be emitted whenever a deposit is made through the deposit function.

Parameters

  • caller Address that called the function.
  • receiver Address that received the SY shares.
  • tokenIn Address of the deposited token.
  • amountDeposited Amount of tokens deposited.
  • amountSyOut Amount of SY tokens (shares) issued.
Redeem
javascript
event Redeem(
    address indexed caller,
    address indexed receiver,
    address indexed tokenOut,
    uint256 amountSyToRedeem,
    uint256 amountTokenOut
);

Emitted when SY tokens are redeemed and the corresponding output tokens are sent to the recipient. It must be emitted whenever SY tokens are converted into output tokens through the redeem function.

Parameters

  • caller Address that called the function.
  • receiver Address that received the output tokens.
  • tokenOut Address of the output token.
  • amountSyToRedeem Amount of SY tokens redeemed.
  • amountTokenOut Amount of output tokens received.

The name SY

SY (pronounced "sigh") stands for Standardized Yield. The name was chosen to capture the concept of standardized, reusable yield-bearing assets. It is more than an abbreviation: it describes the role of SY as a common interface for yield-bearing assets in DeFi.

Additional considerations

ERC5115 requires SY tokens to implement ERC20. This is because basic operations such as transfers (transfer), approvals (approve/transferFrom), and balance queries (balanceOf) can be applied directly to SY tokens, making them immediately compatible with the existing ERC20 ecosystem of wallets, aggregators, and other contracts. Implementers and integrators can minimize adoption costs without learning a new basic interface or creating adapters.

ERC165 may optionally be implemented for interface detection. This allows integrators to determine programmatically whether IStandardizedYield is implemented.

For background on ERC165, see the following article.

[ERC165] Checking Whether a Contract Supports a Specific Interface

ERC2612 (Permit) may optionally be implemented to improve the approval experience. Signature-based approvals can reduce the number of actions required from users.

For background on ERC2612, see the following article.

[ERC2612] Using Signature-Based Approvals and Transfers in a Single Transaction

Standard Adoption Purpose
ERC20 Required Inherit basic operations (transfers, approvals, balance queries) and maintain immediate compatibility with existing use cases.
ERC165 Optional Make it easier to detect implementations of IStandardizedYield.
ERC2612 Optional Improve the approval experience and reduce integration friction.

Compatibility

ERC5115 maintains compatibility because it is implemented as an extension of ERC20. Systems built around existing ERC20 tokens can handle SY tokens directly.

All SY implementations must implement the metadata extension (name, symbol, decimals) with its defined semantics. These fields must accurately reflect the accounting asset of the underlying GYGP, so that names and units are interpreted consistently.

Security considerations

Even an implementation that complies with the ERC5115 interface can put users at risk if it is malicious. Integrators such as wallets, aggregators, and other smart contracts should review implementations to avoid potential loss of funds or malicious behavior.

In particular, the address returned by yieldToken must accurately identify the yield-bearing token being wrapped. Only when the SY is a native implementation that represents GYGP shares directly, without wrapping a particular yield-bearing token, may it return the zero address. Otherwise, returning an incorrect address can misrepresent the meaning or reference of the SY token and may be considered malicious.

Issue Description
Compliance does not guarantee safety Compliance alone does not ensure safety. Integrators should review implementations.
Accuracy of yieldToken When wrapping a token, return its exact underlying address. The zero address is permitted only for native implementations.
Avoiding misinterpretation An incorrect yieldToken obscures the meaning of the SY token and may be interpreted as malicious behavior.

SY therefore preserves existing ERC20 compatibility while allowing optional extensions for discoverability (ERC165) and user experience (ERC2612). Careful implementation and integration are essential to safe, consistent use.

Citation

Vu Nguyen (@mrenoon), Long Vuong (@UncleGrandpa925), Anton Buenavista (@ayobuenavista), "ERC-5115: SY Token [DRAFT]," Ethereum Improvement Proposals, no. 5115, May 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-5115.

Conclusion

This article covered ERC5115, which defines Standardized Yield (SY) as a common token standard for handling yield-bearing tokens in DeFi. I hope you found it useful.

If you have questions, feel free to contact me via Twitter DM.

Twitter @cardene777

I also publish on the following platforms:

https://chaldene.net/