Class: AdjustAirdropAmountKlass

lib/airdrop_management/adjust_airdrop_amount~ AdjustAirdropAmountKlass


new AdjustAirdropAmountKlass(airdropContractAddress, userAddress, airdropAmountUsed)

Constructor to create object of userBalance
Parameters:
Name Type Description
airdropContractAddress Hex airdrop contract address
userAddress Array Array of user addressed
airdropAmountUsed BigNumber used airdrop amount
Returns:
Type
Object

Methods


creditAirdropUsedAmount()

Credit airdrop used amount. decreases airdrop_used_amount of user_airdrop_details table
Returns:
Type
Promise

debitAirdropUsedAmount()

Debit airdrop used amount
Returns:
Type
Promise

rollbackCreditAirdropAdjustedAmount()

Rollback credit airdrop used amount
Returns:

rollbackDebitAirdropAdjustedAmount()

Rollback debit airdrop used amount
Returns: