Gas efficiency is a key design consideration, as it directly impacts user costs and the overall user experience. We have conducted a rigorous gas consumption analysis for all primary protocol operations to validate our commitment to on-chain performance.
The measurements were performed using the sui client replay-transaction tool, which provides a precise breakdown of computation and storage fees. You can learn more about this tool in the official Sui Replay CLI Documentation.
The following report details the gas costs for key user actions, providing transparency into the protocol's on-chain performance. These measurements reflect the engineering and optimization efforts invested to deliver a cost-effective trading experience.
The following formulas calculate the storage fees from both the validator's and the user's perspectives:
-
Validator Perspective:
$$ \text{storage_fee (validator)} = \text{old_rebates_sum} - \text{new_rebates_sum} - \text{non_refundable_storage_fee} $$ -
User Perspective: $$
- \text{storage_fee (user)} = \text{new_rebates_sum} - \text{old_rebates_sum} + \text{non_refundable_storage_fee} $$
- Limit order Input fee +
FeeManagercreation: 0.009592372 SUI (link)- Computation fee: 0.000503 SUI (1,000 bucket)
- Storage fee: 0.009089372
- SUI
FeeManagercreation: 0.002204 SUI (non-reclaimable)FeeManagerOwnerCapcreation: 0.0016568 SUI (non-reclaimable)UserUnsettledFeeadded: 0.0034352 SUI (reclaimable)USDCcoin created: 0.0013224 SUI (reclaimable)BigVector::Slicemodification (DeepBook): 0.000874 SUIAccountdynamic field modification (DeepBook): 0.0001216 SUI- Our storage fee: 0.0086184 SUI (44% non-reclaimable, 56% reclaimable)
- Sum: 0.009614 SUI
- Limit order DEEP fee +
FeeManagercreation + some DeepBook creations: 0.01602828 SUI (link)- Computation fee: 0.000503 SUI (1,000 bucket)
- Storage fee: 0.01552528 SUI
FeeManagercreation: 0.002204 SUI (non-reclaimable)FeeManagerOwnerCapcreation: 0.0016568 SUI (non-reclaimable)UserUnsettledFeeadded: 0.00342 SUI (reclaimable)SUIcoin created: 0.000988 SUI (reclaimable)DEEPcoin created: 0.0013224 SUI (reclaimable)BalanceKeycreated (DeepBook): 0.0029108 SUI (reclaimable)Accountdf created (DeepBook): 0.0034048 SUI- Our storage fee: 0.0095912 SUI (40% non-reclaimable, 60% reclaimable)
- Limit order Input fee: 0.00444022 SUI (link)
- Computation fee: 0.0005 SUI (1,000 bucket)
- Storage fee: 0.00394022 SUI
UserUnsettledFeeadded: 0.0034352 SUI (reclaimable)USDCcoin created: 0.0013224 SUI (reclaimable)- Our storage fee: 0.0047576 SUI (100% reclaimable)
- Limit order DEEP fee +
ChargedFeeKeycreation coverage fees bag: 0.009408868 SUI (link)- Computation fee: 0.001 SUI (2,000 bucket)
- Storage fee: 0.008408868 SUI
UserUnsettledFeeadded: 0.0034352 SUI (reclaimable)ChargedFeeKeydf for deep reserves coverage fee bag created: 0.00285 SUI (non-reclaimable, one-time operation for all users)USDCcoin created: 0.0013224 SUI (reclaimable)SUIcoin created: 0.000988 SUI (reclaimable)BalanceKeycreated (DeepBook): 0.0029108 SUI (reclaimable)- Our storage fee: 0.0085956 SUI (66% reclaimable, 34% non-reclaimable, but one-time operation)
- Limit order DEEP fee: 0.00920572 SUI (link)
- Computation fee: 0.001 SUI (2,000 bucket)
- Storage fee: 0.00820572 SUI
UserUnsettledFeeadded: 0.0034352 SUI (reclaimable)USDCcoin created: 0.0013224 SUI (reclaimable)SUIcoin created: 0.000988 SUI (reclaimable)BalanceKeycreated (DeepBook): 0.0029108 SUI (reclaimable)- Our storage fee: 0.0057456 SUI (100% reclaimable)
- Cancel order (2
withdraw_all): 0.001038456 SUI (link)- Computation fee: 0.001 SUI (2,000 bucket)
- Storage fee: 0.000038456 SUI
SUIcoin created: 0.000988 SUI (reclaimable)- x2
USDCcoin created: 0.0026448 SUI (reclaimable) - Our storage fee: 0.0036328 SUI (100% reclaimable)
- Market order Input fee + withdraws: 0.003222696 SUI (link)
- Computation fee: 0.001 SUI (2,000 bucket)
- Storage fee: 0.002222696 SUI
SUIcoin created: 0.000988 SUI (reclaimable)USDCcoin created: 0.0013224 SUI (reclaimable)- Our storage fee: 0.0023104 SUI (100% reclaimable)
- Market order DEEP fee + withdraws +
ProtocolUnsettledFeeKeycreation: 0.00767006 SUI (link)- Computation fee: 0.0015 SUI (3,000 bucket)
- Storage fee: 0.00617006 SUI
- x2
SUIcoin created: 0.001976 SUI (reclaimable) - x2
USDCcoin created: 0.0026448 SUI (reclaimable) ProtocolUnsettledFeeKeycreated: 0.0029792 SUI (reclaimable)- Our storage fee: 0.0076 SUI (100% reclaimable)
- x2
- Swap 1 step: 0.006929372 SUI (link)
- Computation fee: 0.0005 SUI (1,000 bucket)
- Storage fee: 0.006429372 SUI
SUIcoin created: 0.000988 SUI (reclaimable)USDCcoin created: 0.0013224 SUI (reclaimable)Accountdf created (DeepBook): 0.0032832 SUI- Our storage fee: 0.0023104 SUI (100% reclaimable)
- Swap 2 steps: 0.014329716 SUI (link)
- Computation fee: 0.001 SUI (2,000 bucket)
- Storage fee: 0.013329716 SUI
ProtocolUnsettledFeeKeydf created: 0.0032832 SUI (reclaimable)SUIcoin created: 0.000988 SUI (reclaimable)USDCcoin created: 0.0013224 SUI (reclaimable)xBTCcoin created: 0.0013224 SUI (reclaimable)- x2
Accountdf created (DeepBook): 0.0065664 SUI - Our storage fee: 0.006916 SUI (100% reclaimable)
- Brand new account, Limit order DEEP fee: 0.022343384 SUI (link)
- Computation fee: 0.001 SUI (2,000 bucket)
- Storage fee: 0.021343384 SUI
FeeManagercreated: 0.002204 SUI (non-reclaimable)FeeManagerOwnerCapcreated: 0.0016568 SUI (non-reclaimable)UserUnsettledFeecreated: 0.0034352 SUI (reclaimable)SUIcoin created: 0.000988 SUI (reclaimable)USDCcoin created: 0.0013224 SUI (reclaimable)BalanceManagercreated (DeepBook): 0.0022116 SUI (non-reclaimable)TradeCapcreated (DeepBook): 0.0016112 SUI (non-reclaimable)Accountdf created (DeepBook): 0.0034048 SUI (non-reclaimable)BalanceKeycreated (DeepBook): 0.0029108 SUI (reclaimable)- Our storage fee: 0.0096064 SUI (60% reclaimable, 40% non-reclaimable)