AirdropModule
Module that enables managers to absorb tokens sent to the SetToken into the token's positions. With each SetToken, managers are able to specify 1) the airdrops they want to include, 2) an airdrop fee recipient, 3) airdrop fee, and 4) whether all users are allowed to trigger an airdrop.
Select Methods
absorb()
function absorb(ISetToken _setToken, IERC20 _token)
Valid Caller only. Absorb specified token into position. If airdropFee defined, send portion to feeRecipient and portion to protocol feeRecipient address. Callable only by manager unless manager has set anyoneAbsorb to true.
addAirdrop()
addAirdrop(ISetToken _setToken, IERC20 _airdrop)
Manager only. Adds new tokens to be added to positions when absorb is called.
updateFeeRecipient()
updateFeeRecipient(ISetToken _setToken, address _newFeeRecipient)
Manager only. Update address manager fees are sent to.
updateAirdropFee()
function updateAirdropFee( ISetToken _setToken, uint256 _newFee )
Manager only. Update airdrop fee percentage.
initialize()
function initialize( ISetToken _setToken, AirdropSettings memory _airdropSettings )
Manager only. Initialize module with SetToken and set initial airdrop tokens as well as specify whether anyone can call absorb.
The AirdropSettings struct is constructed as follows:
Last updated