PCVGuardian
Functions
constructor
Parameters
Name | Type | Description |
---|---|---|
| address | |
| address[] |
isSafeAddress
returns true if the the provided address is a valid destination to withdraw funds to
Parameters
Name | Type | Description |
---|---|---|
| address | the address to check |
getSafeAddresses
returns all safe addresses
setSafeAddress
governor-only method to set an address as "safe" to withdraw funds to
Parameters
Name | Type | Description |
---|---|---|
| address | the address to set as safe |
setSafeAddresses
batch version of setSafeAddress
Parameters
Name | Type | Description |
---|---|---|
| address[] | the addresses to set as safe, as calldata |
unsetSafeAddress
governor-or-guardian-only method to un-set an address as "safe" to withdraw funds to
Parameters
Name | Type | Description |
---|---|---|
| address | the address to un-set as safe |
unsetSafeAddresses
batch version of unsetSafeAddresses
Parameters
Name | Type | Description |
---|---|---|
| address[] | the addresses to un-set as safe |
withdrawToSafeAddress
governor-or-guardian-only method to withdraw funds from a pcv deposit, by calling the withdraw() method on it
Parameters
Name | Type | Description |
---|---|---|
| address | the address of the pcv deposit contract |
| address | the destination address to withdraw to |
| uint256 | the amount to withdraw |
| bool | if true, the pcv contract will be paused after the withdraw |
| bool | if true, attempts to deposit to the target PCV deposit |
withdrawETHToSafeAddress
governor-or-guardian-only method to withdraw funds from a pcv deposit, by calling the withdraw() method on it
Parameters
Name | Type | Description |
---|---|---|
| address | the address of the pcv deposit contract |
| address payable | the destination address to withdraw to |
| uint256 | the amount of tokens to withdraw |
| bool | if true, the pcv contract will be paused after the withdraw |
| bool | if true, attempts to deposit to the target PCV deposit |
withdrawERC20ToSafeAddress
governor-or-guardian-only method to withdraw funds from a pcv deposit, by calling the withdraw() method on it
Parameters
Name | Type | Description |
---|---|---|
| address | the deposit to pull funds from |
| address | the destination address to withdraw to |
| address | |
| uint256 | the amount of funds to withdraw |
| bool | whether to pause the pcv after withdrawing |
| bool | if true, attempts to deposit to the target PCV deposit |
_setSafeAddress
Parameters
Name | Type | Description |
---|---|---|
| address |
_unsetSafeAddress
Parameters
Name | Type | Description |
---|---|---|
| address |
Last updated