Network Fees
Last updated
Was this helpful?
Last updated
Was this helpful?
Every time you make an action on Demex, a tiny network fee needs to be paid to utilize the underlying L1 chain. This fee goes to the decentralized network of validators that secure every transaction done on Demex (e.g. placing orders, adding liquidity). It also serves to mitigate possible spam attacks.
The fees for each action can be found at the following endpoint: https://api.carbon.network/carbon/fee/v1/gas_costs.
Note that the fees are denominated in $SWTH, without decimals. That means that a value of 10000000
0.1 $SWTH.
If a transaction message is not listed, it costs thedefault_fee
of 0.1 $SWTH.
For traders, it is sufficient to note that all trading actions currently cost 0.1 $SWTH (<$0.01).
Demex enables users to pay for network fees in many other tokens apart from $SWTH.
This enables Demex to have a more streamlined onboarding experience. Users do not need $SWTH to trade or perform actions on Demex, instead, they can use a wide array of tokens such as $USD, $ETH, or $WTBC to pay for network fees.
The full list of tokens and their conversion rates (to 1 $SWTH) can be found here: https://api.carbon.network/carbon/fee/v1/gas_prices
You can choose which token you prefer Demex to use for network fees via a priority system. Tokens at the start of the list will be used first, until there is insufficient available balance, before moving on to the next.
That's it! Demex will abide by the network fee priority you have set, and use the token with the highest ranking as network fee so long as sufficient balance is available.
Demex allows you to reserve some $SWTH to be used as fees. This means that even when clicking on the 100% button on trading, lending, staking, or liquidity pool inputs, your full balance of $SWTH will not be used.
For example, placing a 100% sell order on the SWTH/USD market will deduct this reserved amount from your available balance before filling it into the quantity input field.
Additionally, Demex has an alert system when your fee balance is low, so your trading activity is never abruptly halted due to insufficient network fees. Under the 'Reserve Tokens for Fees' section, toggle on Enable to Reserve, and enter your preferred amount to be reserved for network fees (in USD).
That's it! If you run out of network fees, replenish your preferred token in the 'Fee Settings' window.