Skip to content

fetchUserDiscount

See the full code here.

fetchUserDiscount(userAddress: string): Promise<number>

Returns

Returns a Promise that, when resolved, provides a number which is the fee discount the user is entitled e.g. 20 is interpreted to mean a 20% discount on the fees charged.

Parameters

Terminal window
# The user address to get the discount of
userAddress: string