Adding Fees

There are no protocol fees for AshSwap Aggregator or platform fees on AshSwap UI, however, UI providers may implement platform fees. If a platform fee is set, AshSwap will take 10% of the platform fees charged by integrators.

Overall

Contact us to establish fees for your platforms.

SDK Configuration

First, register with us the wallet you use for collecting the fees and the fees you would like to set for your platform. Then, use that wallet as the protocol argument in your integration.

CLI

Query Fee Percentage

100% equals 100,000 in the smart contract. If your fee is 0.1%, the result is 100.

Query Claimable Fees

Fees are taken from token inputs, so over time, fees can consist of multiple tokens, so we allow you to query by indexes. The numbers 0 and 100 at the end of the query are the start index and end index, respectively.

Claim Fees

Claim all fees available in the smart contracts.

When the number of fee tokens is too large, to make sure the transaction doesn't go over the gas limit or it doesn't make sense economically to claim small fee tokens, you can claim fees by tokens.

WEGLD-bd4d79 and USDC-c76f1f are the tokens you want to claim.

Last updated

Was this helpful?