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:

struct AirdropSettings {
    address[] airdrops;                     // Array of tokens manager is allowing to be absorbed
    address feeRecipient;                   // Address airdrop fees are sent to
    uint256 airdropFee;                     // Percentage in preciseUnits of airdrop sent to feeRecipient (1e16 = 1%)
    bool anyoneAbsorb;                      // Boolean indicating if any address can call absorb or just the manager
}

Last updated