We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a28e900 + 65bc810 commit bea5409Copy full SHA for bea5409
33_Airdrop/Airdrop.sol
@@ -25,9 +25,9 @@ contract Airdrop {
25
);
26
IERC20 token = IERC20(_token); // 声明IERC合约变量
27
uint _amountSum = getSum(_amounts); // 计算空投代币总量
28
- // 检查:授权代币数量 > 空投代币总量
+ // 检查:授权代币数量 >= 空投代币总量
29
require(
30
- token.allowance(msg.sender, address(this)) > _amountSum,
+ token.allowance(msg.sender, address(this)) >= _amountSum,
31
"Need Approve ERC20 token"
32
33
0 commit comments