Skip to content

API ReferenceValidationFunction

checkERC20Approval()

function checkERC20Approval(ctx, params): Promise<ValidationIssue[]>;

Checks whether the signer has sufficient ERC-20 approval (allowance) for depositing to the CollateralVault, and sufficient wallet balance.

Parameters

ParameterType
ctxSDKContext
paramsERC20ApprovalCheckParams

Returns

Promise<ValidationIssue[]>