Skip to main content

EthOsTokenRedeemer

Git Source ↗

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

NameTypeDescription
receiveraddressThe address to receive the OsToken shares

Returns

NameTypeDescription
osTokenSharesuint256The amount of OsToken shares received

receive

Function for receiving redeemed assets.

receive() external payable;