Structures
Cairo structures map for the exchange entities
Fees
Gas fee
struct GasFee {
gas_per_action: u32,
fee_token: ContractAddress,
max_gas_price: u256,
conversion_rate: (u256, u256), # in case of chain base currency it will be (1,1)
}Fixed fee
struct FixedFee {
recipient: ContractAddress, # the one who will recieve specified amount of fees of trade
maker_pbips: u32, #0.01pct = 1bps = 100pbips
taker_pbips: u32,
apply_to_receipt_amount: bool
}Order fee
Order
Onchain fills info
STP modes
Quantity
Constraints
OrderFlags
Order
Signed entity of order
Nonce
Increase nonce
Signed entity of increase nonce
Withdraw
Withdraw
Signed entity of withdraw
Utils
Last updated