proposal-47/contracts/AirdropRecipients.sol

22 lines
594 B
Solidity
Raw Normal View History

2024-02-10 21:43:54 +03:00
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.9;
import "./libraries/Types.sol";
/**
* @notice i create separate contract bcs i will use the same airdrop recipients in two proposals
*/
contract AirdropRecipients {
Types.Recipient[] public airdropRecipients;
constructor(Types.Recipient[] memory _recipients) {
for (uint256 i = 0; i < _recipients.length; i++) {
airdropRecipients.push(_recipients[i]);
}
}
function getAirdropRecipients() external view returns (Types.Recipient[] memory) {
return airdropRecipients;
}
}