filswan / swan-faucet

Simple smart contract based ERC20 faucet for Ethereum
MIT License
1 stars 2 forks source link

check token balance in contract before call sendMultiTokens #19

Closed liushmh closed 2 years ago

liushmh commented 2 years ago

server side check

check all tokens, return 'out of balance' err if contract is running out of balance

[
  {"address":"0x......", result:-1, err:"running out of tokens"},
  {"address":"0xEeeeeeEEEee", result:0},
]