β Key Functions
Deposit
Deposits ERC-20 asset into token vault on behalf of receiver who receives the gTokens minted.
Make sure you approve the vault contract to spend this amount before calling deposit.
Withdraw
Withdraws ERC-20 asset from token vault into the receiver address. gTokens are burned from the owner address.
Utility Methods
Returns the amount of yield attributable to a gToken address holder. Denominated in asset.
Returns the amount of yield attributable to a gToken address holder. Denominated in asset.
Converts an amount of the asset to its equivalent in the yield asset (ex: 1 ETH -> 0.8 rETH).
Converts an amount of the yield asset to its equivalent in the asset (ex: 0.8 rETH -> 1 ETH).
Other
-
All ERC-20 methods (
transfer
,transferFrom
,balanceOf
, etc.) -
If underlying asset is a native token (ex: ETH), then there is also another method available with the following signature: