Comment on page
WETHForwarder
contracts/pool/WETHForwarder.sol
Title: WETHForwarder
Notice: Temporary WETH holder and is responsible to unwrap and forward actual ETH to user
Details: Allows transfer of WETH avoiding out-of-gas error (in case pool is ever deployed through proxy).
constructor(weth)
Arguments
name | type | description |
weth | address | |
***WETHForwarder.OwnershipTransferred(previousOwner, newOwner) ***
Arguments
name | type | description |
previousOwner | address | indexed |
newOwner | address | indexed |
***WETHForwarder.PoolUpdated(previousPool, newPool) ***
Notice: An event thats emitted when pool is updated
Arguments
name | type | description |
previousPool | address | indexed |
newPool | address | indexed |
WETHForwarder.getPool() view
Notice: Gets pool address
Outputs
name | type | description |
| address | |
WETHForwarder.owner() view
Details: Returns the address of the current owner.
Outputs
name | type | description |
| address | |
***WETHForwarder.renounceOwnership() ***
Details: Leaves the contract without owner. It will not be possible to callonlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
***WETHForwarder.setPool(pool) ***
Notice: Changes the pool. Can only be set by the contract owner.
Arguments
name | type | description |
pool | address | new contract pool address |
***WETHForwarder.transferOwnership(newOwner) ***
Details: Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Arguments
name | type | description |
newOwner | address | |
***WETHForwarder.unwrapAndTransfer(to, amount) ***
Notice: Unwrap and transfer eth. Can only be called by pool
Arguments
name | type | description |
to | address | address receiving |
amount | uint256 | total amount to be transferred |
Last modified 2yr ago