EthOsTokenRedeemer
Inherits: IEthOsTokenRedeemer, ReentrancyGuard ↗, OsTokenRedeemer →
This contract is used to redeem OsTokens for the underlying asset.
Functions
swapAssetsToOsTokenShares
Swap assets to OsToken shares. Must send ETH together with the call.
function swapAssetsToOsTokenShares(address receiver) external payable override returns (uint256 osTokenShares);
Parameters
| Name | Type | Description |
|---|---|---|
receiver | address | The address to receive the OsToken shares |
Returns
| Name | Type | Description |
|---|---|---|
osTokenShares | uint256 | The amount of OsToken shares received |
receive
Function for receiving redeemed assets.
receive() external payable;