-
Notifications
You must be signed in to change notification settings - Fork 29
Commands
JaredBorders edited this page Oct 5, 2023
·
7 revisions
ββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ID β COMMAND β INPUTS β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 0 β ACCOUNT_MODIFY_MARGIN β int256 amount β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 1 β ACCOUNT_WITHDRAW_ETH β uint256 amount β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 2 β PERPS_V2_MODIFY_MARGIN β address market, int256 amount β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 3 β PERPS_V2_WITHDRAW_ALL_MARGIN β address market β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 4 β PERPS_V2_SUBMIT_ATOMIC_ORDER β address market, int256 sizeDelta, uint256 desiredFillPrice β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 5 β PERPS_V2_SUBMIT_DELAYED_ORDER β address market, int256 sizeDelta, uint256 desiredTimeDelta, uint256 desiredFillPrice β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 6 β PERPS_V2_SUBMIT_OFFCHAIN_DELAYED_ORDER β address market, int256 sizeDelta, uint256 desiredFillPrice β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 7 β PERPS_V2_CLOSE_POSITION β address market, uint256 desiredFillPrice β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 8 β PERPS_V2_SUBMIT_CLOSE_DELAYED_ORDER β address market, uint256 desiredTimeDelta, uint256 desiredFillPrice β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 9 β PERPS_V2_SUBMIT_CLOSE_OFFCHAIN_DELAYED_ORDER β address market, uint256 desiredFillPrice β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 10 β PERPS_V2_CANCEL_DELAYED_ORDER β address market β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 11 β PERPS_V2_CANCEL_OFFCHAIN_DELAYED_ORDER β address market β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 12 β GELATO_PLACE_CONDITIONAL_ORDER β bytes32 marketKey, int256 marginDelta, int256 sizeDelta, uint256 targetPrice, ConditionalOrderTypes conditionalOrderType, uint128 desiredFillPrice, bool reduceOnly β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 13 β GELATO_CANCEL_CONDITIONAL_ORDER β uint256 orderId β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 14 β UNISWAP_V3_SWAP β uint256 amountIn, uint256 amountOutMin, bytes path β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 15 β PERMIT2_PERMIT β IPermit2.PermitSingle calldata permitSingle, bytes data β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 16 β PERPS_V2_SET_MIN_KEEPER_FEE β N/A β
ββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β ID β COMMAND β DESCRIPTION β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 0 β ACCOUNT_MODIFY_MARGIN β (Owner Only) Deposit or withdraw specified sUSD amount into/from smart margin (SM) account. Sign determines direction. (+) deposit & (-) withdraw β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 1 β ACCOUNT_WITHDRAW_ETH β (Owner Only) Withdraw specified ETH amount from SM account β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 2 β PERPS_V2_MODIFY_MARGIN β (Owner & Delegate Only) Deposit or withdraw specified sUSD amount into/from specified Synthetix PerpsV2 Market. Sign determines direction. (+) deposit & (-) withdraw β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 3 β PERPS_V2_WITHDRAW_ALL_MARGIN β (Owner & Delegate Only) Withdraw all margin from specified Synthetix PerpsV2 Market β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 4 β PERPS_V2_SUBMIT_ATOMIC_ORDER β (Owner & Delegate Only) Submit an atomic order for underlying asset in specified Synthetix PerpsV2 Market β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 5 β PERPS_V2_SUBMIT_DELAYED_ORDER β (Owner & Delegate Only) Submit a delayed order for underlying asset in specified Synthetix PerpsV2 Market β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 6 β PERPS_V2_SUBMIT_OFFCHAIN_DELAYED_ORDER β (Owner & Delegate Only) Submit a delayed, off-chain order for underlying asset in specified Synthetix PerpsV2 Market β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 7 β PERPS_V2_CLOSE_POSITION β (Owner & Delegate Only) Atomically close an active position in a specified Synthetix PerpsV2 Market without needing to specify size delta β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 8 β PERPS_V2_SUBMIT_CLOSE_DELAYED_ORDER β (Owner & Delegate Only) Submit delayed order to close an active position in a specified Synthetix PerpsV2 Market without needing to specify size delta β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 9 β PERPS_V2_SUBMIT_CLOSE_OFFCHAIN_DELAYED_ORDER β (Owner & Delegate Only) Submit a delayed, off-chain order to close an active position in a specified Synthetix PerpsV2 Market without needing to specify size delta β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 10 β PERPS_V2_CANCEL_DELAYED_ORDER β (Owner & Delegate Only) Cancel a pending delayed order for underlying asset in specified Synthetix PerpsV2 Market β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 11 β PERPS_V2_CANCEL_OFFCHAIN_DELAYED_ORDER β (Owner & Delegate Only) Cancel a pending, off-chain delayed order for underlying asset in specified Synthetix PerpsV2 Market β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 12 β GELATO_PLACE_CONDITIONAL_ORDER β (Owner & Delegate Only) Place a conditional order which details conditional order type, reduce-only optionality and market conditions that will/may trigger a delayed order β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 13 β GELATO_CANCEL_CONDITIONAL_ORDER β (Owner & Delegate Only) Cancel a conditional order β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 14 β UNISWAP_V3_SWAP β (Owner Only) Execute a whitelisted token swap (sUSD <-> whitelisted ERC20 token) via Uniswap's Universal Router β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 15 β PERMIT2_PERMIT β (Owner Only) Permit a spender (Smart Margin Account) to a given amount of the owners token via the owner's EIP-712 signature β
ββββββΌβββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 16 β PERPS_V2_SET_MIN_KEEPER_FEE β (Owner & Delegate Only) Updates the minKeeperFee in Synthetix Perps v2 PerpsV2MarketSettings β
ββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ