getAllowance
is a method that helps get the allowance amount of a given erc20 contract for airdrop contract to spend. It is commonly used to check allowance of payment contract before increaseAllowance
Parameter
Argument | Type | Description |
---|---|---|
description | string | the address of the erc20 token |
owner | string | the address of the owner |
Response
Property | Type | Description |
---|---|---|
Promise | BigNumber | the amount of allowance |
Example
const allowance = await presaleSdk.getAllowance(paymentToken, await signer.getAddress())