Fees
What Scalar can charge, and the limits in the contract.
Scalar can charge a fee at three points: when a trade fills, when a position settles and when you withdraw. Deposits are free. The contract sets a hard limit on each fee, so a fee can never be larger than the amount it is taken from.
| Fee | When it is taken | How it is counted | Limit in the contract | Testnet today |
|---|---|---|---|---|
| Trading | When your order fills | A share of the trade's notional value | 5% of notional, for each side | Set by the exchange |
| Settlement | When your position is paid | A flat amount per contract | Never more than the payout | $0 |
| Withdrawal | When you withdraw | A flat amount per withdrawal | The withdrawal must be more than the fee | $0 |
| Deposit | Never | None | None | $0 |
The notional value of a trade is its price × its size. The admin sets the settlement fee and the withdrawal fee in the contract. You can read them at any time with getSettlementFee() and getWithdrawalFee().
Trading fees
Each fill has a maker and a taker:
| Role | You are this role when |
|---|---|
| Maker | Your limit order was resting on the book when it filled. |
| Taker | Your order filled against an order that was already resting. |
The exchange sets the maker rate and the taker rate, and can change them. The fee is taken from your balance in the same transaction as the trade. The contract checks each fee and rejects a trade whose fee is over 5% of its notional value.
You buy 100 contracts at $2.00. The notional value is $200.00. Whatever the rate, the trading fee on your side can never be more than $10.00.
Settlement fees
When a position is paid, a flat fee per contract can be taken from the payout. The fee is capped at the payout, so a position that pays $0 costs $0 to settle.
Withdrawal fees
A flat fee can be taken from each withdrawal. It comes out of the amount you withdraw. A request that is not larger than the fee is rejected.
Gas
| Action | Gas |
|---|---|
| Place or cancel an order | None. An order is a signed message. |
| A trade fills | None for you. The Scalar executor posts it. |
| Withdraw | None for you. The Scalar executor posts your signed request. |
| Deposit, and approve USDC | Yes. You send the transactions from your wallet. |
| Settle your own position | Yes, if you choose to. The Scalar keeper pays positions out for free. |
| Withdraw without Scalar | Yes. You send requestWithdrawal() and fulfillWithdrawal(). |