Skip to content

IGovernanceWrappedERC20 ​

Interface · src/erc20/IGovernanceWrappedERC20.sol

Explained in: Governance tokens

Author: Aragon X

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

security-contact: sirt@aragon.org

Functions ​

depositFor ​

solidity
function depositFor(address account, uint256 amount) external returns (bool)

Selector: 0x2f4f21e2

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

ParameterTypeDescription
accountaddressThe address receiving the minted, wrapped tokens.
amountuint256The amount of tokens to deposit.

withdrawTo ​

solidity
function withdrawTo(address account, uint256 amount) external returns (bool)

Selector: 0x205c2878

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

ParameterTypeDescription
accountaddressThe address receiving the withdrawn, underlying tokens.
amountuint256The amount of underlying tokens to withdraw.