Skip to main content

IGovernanceWrappedERC20

Description

An interface for the token wrapping contract wrapping existing ERC-20 tokens.

Implementation

external function depositFor

Deposits an amount of underlying token and mints the corresponding number of wrapped tokens for a receiving address.

function depositFor(address account, uint256 amount) external returns (bool)
InputTypeDescription
accountaddressThe address receiving the minted, wrapped tokens.
amountuint256The amount of tokens to deposit.

external function withdrawTo

Withdraws an amount of underlying tokens to a receiving address and burns the corresponding number of wrapped tokens.

function withdrawTo(address account, uint256 amount) external returns (bool)
InputTypeDescription
accountaddressThe address receiving the withdrawn, underlying tokens.
amountuint256The amount of underlying tokens to withdraw.
© 2024