ITransferStrategyBase
ITransferStrategyBaseβ
EmergencyWithdrawalβ
event EmergencyWithdrawal(address caller, address token, address to, uint256 amount)
performTransferβ
function performTransfer(address to, address reward, uint256 amount) external returns (bool)
Perform custom transfer logic via delegate call from source contract to a TransferStrategy implementation
Parametersβ
Name | Type | Description |
---|---|---|
to | address | Account to transfer rewards |
reward | address | Address of the reward token |
amount | uint256 | Amount to transfer to the "to" address parameter |
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | bool | Returns true bool if transfer logic succeeds |
getIncentivesControllerβ
function getIncentivesController() external view returns (address)
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | Returns the address of the Incentives Controller |
getRewardsAdminβ
function getRewardsAdmin() external view returns (address)
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | Returns the address of the Rewards admin |
emergencyWithdrawalβ
function emergencyWithdrawal(address token, address to, uint256 amount) external
Perform an emergency token withdrawal only callable by the Rewards admin
Parametersβ
Name | Type | Description |
---|---|---|
token | address | Address of the token to withdraw funds from this contract |
to | address | Address of the recipient of the withdrawal |
amount | uint256 | Amount of the withdrawal |