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.
| Parameter | Type | Description |
|---|---|---|
account | address | The address receiving the minted, wrapped tokens. |
amount | uint256 | The 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.
| Parameter | Type | Description |
|---|---|---|
account | address | The address receiving the withdrawn, underlying tokens. |
amount | uint256 | The amount of underlying tokens to withdraw. |