Protocol Fees
When using the DeGate protocol, users may need to pay different fees based on different scenarios.
Trading fees: When a limit order or market order is filled, the Taker of the order pays the Trading fees that vary by trading pairs. The trading fees are deducted from the tokens a user receives after trading. Take DG/USDC as an example. If a user buys 1,000 DG at the market price, assuming a trading fee rate of 0.1%, then the Taker pays 1,000*0.1%=1 DG as trading fees, deducted from the 1,000 DG the user is supposed to receive. Thus, the user ultimately receives 999 DGs. All trading fees will accrue to the DeGate HomeDAO vault.
Gas Fees: All operations completed through zero-knowledge proofs incur gas fees when submitted to the Ethereum mainnet. Based on our testing results, the DeGate protocol has defined the amount of gas each operation consumes. It also calculates the gas fees that a user is required to pay before an operation is initiated based on real-time gas price of the network and ETH price. Currently, gas fees can be paid with ETH, USDC and USDT.
Trading Fee Rate
The node operator sets the trading fee rate for each trading pair, which is currently fixed as:
To prevent the node operator from arbitrarily modifying the fee rate, a parameter specifying the maximum fee rate is added to the DeGate smart contract. The actual fee rate can not exceed this parameter; otherwise the order will fail the smart contract verification when submitted on-chain. In addition, a 7-day grace period after the modification of the maximum fee rate gives users enough time to respond.
Operation Requests and Fees
Calculating Gas fees
Gas usage is configured into every off-chain transaction based on an approximate value obtained after multiple simulations. When a user initiates a request, depending on the real-time gas price of the network and the ETH Price, the amount of ETH, USDC, and USDT to be paid is calculated respectively.
Paid Fund Additions
Each fund addition incurs certain fees as it requires zero-knowledge proof. Currently, the node operator subsidizes fund addition fees, so users do not need to pay for fund additions. To prevent attackers from manipulating the subsidy policy to attack the DeGate protocol, an upper limit is added to the subsidies. If a user’s deposits incur more fees than the ceiling, they should pay a specified amount of ETH to complete the fund addition.
Standard fund addition: Users can pay fees from their wallet or DeGate account, and the payment amount is calculated based on the real-time Gas price of the network.
Advanced fund addition: Fees are paid from users’ wallet. The payment amount parameters are configured in the DeGate smart contract, and the node operator has modification permissions.
Forced Withdrawal
Users interact directly with the DeGate smart contract from their wallet for a forced withdrawal. When calling the ForceWithdraw
method, they must pay a specified amount of ETH, up to 0.25 ETH, configured in the DeGate smart contract. The node operator has modification permissions.
DeGate HomeDAO Treasury
All gas fees and transaction trading fees will be transferred to the DeGate HomeDAO account. The node operator can claim funds from the account.
Last updated