Engine
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
22
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 18 additional slots
Balances ($0.00)
No balances found for "Engine"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "Engine"
ABI
ABI objects
Getter at block 22733859
DOMAIN_SEPARATOR() view returns (bytes32 separator)
0xdb6baf012330937b63aa922b1b0fa0eafd326954487202f424c2da508ba87d72
UPGRADE_INTERFACE_VERSION() view returns (string)
5.0.0
eip712Domain() view returns (bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)
(fields=0x0f, name=SMv3: OrderBook, version=1, chainId=8453, verifyingContract=0x7219cecaa0923ddfe7cdb3b782aff7a69a2ae478, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
proxiableUUID() view returns (bytes32)
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
Read-only
canExecute(struct IEngineConditionalOrder _co, bytes _signature, uint256 _fee) view returns (bool, uint8)
credit(uint128 accountId) view returns (uint256)
hasUnorderedNonceBeenUsed(uint128 _accountId, uint256 _nonce) view returns (bool)
isAccountDelegate(uint128 _accountId, address _caller) view returns (bool)
isAccountOwner(uint128 _accountId, address _caller) view returns (bool)
isMarketOpen(uint128 _marketId) view returns (bool)
isOrderFeeBelow(uint128 _marketId, int128 _sizeDelta, uint256 _fee) view returns (bool)
isPositionSizeAbove(uint128 _accountId, uint128 _marketId, int128 _size) view returns (bool)
isPositionSizeBelow(uint128 _accountId, uint128 _marketId, int128 _size) view returns (bool)
isPriceAbove(uint128 _marketId, uint256 _price, int128 _size) view returns (bool)
isPriceBelow(uint128 _marketId, uint256 _price, int128 _size) view returns (bool)
isTimestampAfter(uint256 _timestamp) view returns (bool)
isTimestampBefore(uint256 _timestamp) view returns (bool)
nonceBitmap(uint128 accountId, uint256 index) view returns (uint256 bitmap)
verifyConditions(struct IEngineConditionalOrder _co) view returns (bool)
verifySignature(struct IEngineConditionalOrder _co, bytes _signature) view returns (bool)
verifySigner(struct IEngineConditionalOrder _co) view returns (bool)
State-modifying
Events commitOrder(uint128 _perpsMarketId, uint128 _accountId, int128 _sizeDelta, uint128 _settlementStrategyId, uint256 _acceptablePrice, bytes32 _trackingCode, address _referrer) payable returns (struct IPerpsMarketProxyData retOrder, uint256 fees)
creditAccount(uint128 _accountId, uint256 _amount) payable
creditAccountZap(uint128 _accountId, uint256 _amount) payable
debitAccount(uint128 _accountId, uint256 _amount) payable
debitAccountZap(uint128 _accountId, uint256 _amount) payable
execute(struct IEngineConditionalOrder _co, bytes _signature, uint256 _fee) payable returns (struct IPerpsMarketProxyData retOrder, uint256 synthetixFees)
fulfillOracleQuery(address EIP7412Implementer, bytes signedOffchainData) payable
invalidateUnorderedNonces(uint128 _accountId, uint256 _wordPos, uint256 _mask) payable
modifyCollateral(uint128 _accountId, uint128 _synthMarketId, int256 _amount) payable
modifyCollateralZap(uint128 _accountId, int256 _amount) payable
multicall(bytes[] data) payable returns (bytes[])
upgradeToAndCall(address newImplementation, bytes data) payable
ConditionalOrderExecuted(struct IPerpsMarketProxyData order, uint256 synthetixFees, uint256 executorFee)
Credited(uint128 indexed accountId, uint256 amount)
Debited(uint128 indexed accountId, uint256 amount)
UnorderedNonceInvalidation(uint128 indexed accountId, uint256 word, uint256 mask)
Upgraded(address indexed implementation)
ZappedIn(uint256 amountWrapped, uint256 amountMinted)
ZappedOut(uint256 amountBurned, uint256 amountUnwrapped)
constructor(address _perpsMarketProxy, address _spotMarketProxy, address _sUSDProxy, address _pDAO, address _usdc, uint128 _sUSDCId)
This contract contains no fallback and receive objects.
AddressEmptyCode(address target)
ApprovalFailed(address token, address owner, address spender, uint256 amount)
CannotExecuteOrder(uint8 reason)
ERC1967InvalidImplementation(address implementation)
ERC1967NonPayable()
FailedInnerCall()
InsufficientAmount(uint256 amount)
InsufficientCredit()
InvalidConditionSelector(bytes4 selector)
InvalidIdSUSDC(uint128 id)
InvalidNonce()
MaxConditionSizeExceeded()
NonUpgradeable()
NotSupported()
OnlyPDAO()
SUSDZeroAddress()
SpotMarketZeroAddress()
TransferFailed(address token, address from, address to, uint256 amount)
USDCZeroAddress()
UUPSUnauthorizedCallContext()
UUPSUnsupportedProxiableUUID(bytes32 slot)
Unauthorized()
ZeroAddress()