Skip to main content

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​

NameTypeDescription
toaddressAccount to transfer rewards
rewardaddressAddress of the reward token
amountuint256Amount to transfer to the "to" address parameter

Return Values​

NameTypeDescription
[0]boolReturns true bool if transfer logic succeeds

getIncentivesController​

function getIncentivesController() external view returns (address)

Return Values​

NameTypeDescription
[0]addressReturns the address of the Incentives Controller

getRewardsAdmin​

function getRewardsAdmin() external view returns (address)

Return Values​

NameTypeDescription
[0]addressReturns 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​

NameTypeDescription
tokenaddressAddress of the token to withdraw funds from this contract
toaddressAddress of the recipient of the withdrawal
amountuint256Amount of the withdrawal