Skip to main content

GnoOsTokenRedeemer

Git Source ↗

Inherits: IGnoOsTokenRedeemer, OsTokenRedeemer →

This contract is used to redeem OsTokens for the underlying asset.

Functions

permitGnoToken

Permit GNO tokens to be used for swap.

function permitGnoToken(uint256 amount, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external override;

Parameters

NameTypeDescription
amountuint256The number of tokens to permit
deadlineuint256The deadline for the permit
vuint8The recovery byte of the signature
rbytes32The output of the ECDSA signature
sbytes32The output of the ECDSA signature

swapAssetsToOsTokenShares

Swap assets to OsToken shares

function swapAssetsToOsTokenShares(address receiver, uint256 assets)
external
override
returns (uint256 osTokenShares);

Parameters

NameTypeDescription
receiveraddressThe address to receive the OsToken shares
assetsuint256The amount of assets to swap

Returns

NameTypeDescription
osTokenSharesuint256The amount of OsToken shares received