Maestro

Verified contract

Implementation

Active on Ethereum with 0 txns
Deployed by via 0x9a6a660d at 19590913
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 49 additional slots

No balances found for "Maestro"

No transactions found for "Maestro"


Functions
Getter at block 20791563
ALL(view returns (uint256)
0
UPPER_BIT_MASK(view returns (bytes32)
0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
contango(view returns (address)
0x6cae28b3d09d8f8fc74ccd496ac986fc84c0c24e
nativeToken(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
orderManager(view returns (address)
0xa64f0dbb10c473978c2efe069da207991e8e3cb3
permit2(view returns (address)
0x000000000022d473030f116ddee9f6b43ac78ba3
positionNFT(view returns (address)
0xc2462f03920d47fc5b9e2c5f0ba5d2ded058fd78
proxiableUUID(view returns (bytes32)
0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
spotExecutor(view returns (address)
0x12158f171c77f6341443b0700e2d094cdeabaa9d
timelock(view returns (address)
0xc0939a4ed0129bc5162f6f693935b3f72a46a90d
vault(view returns (address)
0x3f37c7d8e61c000085aac0515775b06a3412f36b
Read-only

This contract contains no read-only function objects.

State-modifying
_tradeAndWithdraw(struct TradeParams tradeParamsstruct ExecutionParams execParamsaddress tobool nativepayable returns (bytes32 positionIdstruct Trade trade_uint256 amount)
applyPermit(address tokenstruct EIP2098Permit permitaddress spender
cancel(bytes32 orderIdpayable 
cancel(bytes32 orderId1bytes32 orderId2payable 
cancelAndWithdraw(bytes32 orderIdaddress topayable returns (uint256)
cancelAndWithdrawNative(bytes32 orderIdaddress topayable returns (uint256)
cancelReplaceLinkedOrder(bytes32 cancelOrderIdstruct LinkedOrderParams newLinkedOrderParamspayable returns (bytes32 newLinkedOrderId)
cancelReplaceLinkedOrders(bytes32 cancelOrderId1bytes32 cancelOrderId2struct LinkedOrderParams newLinkedOrderParams1struct LinkedOrderParams newLinkedOrderParams2payable returns (bytes32 newLinkedOrderId1bytes32 newLinkedOrderId2)
deposit(address tokenuint256 amountpayable returns (uint256)
depositAndPlace(struct OrderParams paramspayable returns (bytes32 orderId)
depositAndPlaceWithPermit(struct OrderParams paramsstruct EIP2098Permit permitpayable returns (bytes32 orderId)
depositAndTrade(struct TradeParams tradeParamsstruct ExecutionParams execParamspayable returns (bytes32struct Trade)
depositAndTradeWithPermit(struct TradeParams tradeParamsstruct ExecutionParams execParamsstruct EIP2098Permit permitpayable returns (bytes32struct Trade)
depositNative(payable returns (uint256)
depositTradeAndLinkedOrder(struct TradeParams tradeParamsstruct ExecutionParams execParamsstruct LinkedOrderParams linkedOrderParamspayable returns (bytes32 positionIdstruct Trade trade_bytes32 linkedOrderId)
depositTradeAndLinkedOrderWithPermit(struct TradeParams tradeParamsstruct ExecutionParams execParamsstruct LinkedOrderParams linkedOrderParamsstruct EIP2098Permit permitpayable returns (bytes32 positionIdstruct Trade trade_bytes32 linkedOrderId)
depositTradeAndLinkedOrders(struct TradeParams tradeParamsstruct ExecutionParams execParamsstruct LinkedOrderParams linkedOrderParams1struct LinkedOrderParams linkedOrderParams2payable returns (bytes32 positionIdstruct Trade trade_bytes32 linkedOrderId1bytes32 linkedOrderId2)
depositTradeAndLinkedOrdersWithPermit(struct TradeParams tradeParamsstruct ExecutionParams execParamsstruct LinkedOrderParams linkedOrderParams1struct LinkedOrderParams linkedOrderParams2struct EIP2098Permit permitpayable returns (bytes32 positionIdstruct Trade trade_bytes32 linkedOrderId1bytes32 linkedOrderId2)
depositWithPermit(address tokenstruct EIP2098Permit permituint256 amountpayable returns (uint256)
depositWithPermit2(address tokenstruct EIP2098Permit permitpayable returns (uint256)
depositWithPermit2(address tokenstruct EIP2098Permit permituint256 amountpayable returns (uint256)
multicall(bytes[] datapayable returns (bytes[] results)
place(struct OrderParams paramspayable returns (bytes32 orderId)
placeLinkedOrder(bytes32 positionIdstruct LinkedOrderParams paramspayable returns (bytes32 orderId)
placeLinkedOrders(bytes32 positionIdstruct LinkedOrderParams linkedOrderParams1struct LinkedOrderParams linkedOrderParams2payable returns (bytes32 linkedOrderId1bytes32 linkedOrderId2)
swapAndDeposit(address tokenToSelladdress tokenToDepositstruct SwapData swapDatapayable returns (uint256)
swapAndDepositNative(address tokenToDepositstruct SwapData swapDatapayable returns (uint256)
swapAndDepositWithPermit(address tokenToSelladdress tokenToDepositstruct SwapData swapDatastruct EIP2098Permit permitpayable returns (uint256)
swapAndDepositWithPermit2(address tokenToSelladdress tokenToDepositstruct SwapData swapDatastruct EIP2098Permit permitpayable returns (uint256)
swapAndWithdraw(address tokenToSelladdress tokenToReceivestruct SwapData swapDataaddress topayable returns (uint256)
swapAndWithdrawNative(address tokenToSellstruct SwapData swapDataaddress topayable returns (uint256 output)
trade(struct TradeParams tradeParamsstruct ExecutionParams execParamspayable returns (bytes32struct Trade)
tradeAndLinkedOrder(struct TradeParams tradeParamsstruct ExecutionParams execParamsstruct LinkedOrderParams linkedOrderParamspayable returns (bytes32 positionIdstruct Trade trade_bytes32 linkedOrderId)
tradeAndLinkedOrders(struct TradeParams tradeParamsstruct ExecutionParams execParamsstruct LinkedOrderParams linkedOrderParams1struct LinkedOrderParams linkedOrderParams2payable returns (bytes32 positionIdstruct Trade trade_bytes32 linkedOrderId1bytes32 linkedOrderId2)
tradeAndWithdraw(struct TradeParams tradeParamsstruct ExecutionParams execParamsaddress topayable returns (bytes32 positionIdstruct Trade trade_uint256 amount)
tradeAndWithdrawNative(struct TradeParams tradeParamsstruct ExecutionParams execParamsaddress topayable returns (bytes32 positionIdstruct Trade trade_uint256 amount)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
usePermit2(address tokenstruct EIP2098Permit permituint256 amountaddress to
withdraw(address tokenuint256 amountaddress topayable returns (uint256)
withdrawNative(uint256 amountaddress topayable returns (uint256)
Events
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Initialized(uint8 version
Upgraded(address indexed implementation
Constructor
constructor(address _timelockaddress _contangoaddress _orderManageraddress _vaultaddress _permit2address _spotExecutor
Fallback and receive
receive(
Errors
AboveMaxGasMultiplier(uint64 gasMultiplier
BelowMinGasMultiplier(uint64 gasMultiplier
CashflowCcyRequired(
ClosingOnly(
InstrumentAlreadyExists(bytes16 symbol
InsufficientBaseCashflow(int256 expectedint256 actual
InsufficientBaseOnOpen(uint256 expectedint256 actual
InsufficientPermitAmount(uint256 requireduint256 actual
InvalidCashflow(
InvalidCashflowCcy(
InvalidDeadline(uint256 deadlineuint256 blockTimestamp
InvalidInstrument(bytes16 symbol
InvalidOrderType(uint8 orderType
InvalidPrice(uint256 forwardPriceuint256 limitPrice
InvalidQuantity(
InvalidTolerance(uint256 tolerance
MismatchingPositionId(bytes32 orderId1bytes32 orderId2
NotEnoughBalance(address tokenuint256 balanceuint256 requested
NotFlashBorrowProvider(address msgSender
NotNativeToken(address token
OnlyFullClosureAllowedAfterExpiry(
OrderAlreadyExists(bytes32 orderId
OrderDoesNotExist(bytes32 orderId
OrderExpired(bytes32 orderIduint256 deadlineuint256 blockTimestamp
OrderInvalidated(bytes32 orderId
PositionDoesNotExist(bytes32 positionId
PriceAboveLimit(uint256 limituint256 actual
PriceBelowLimit(uint256 limituint256 actual
SenderIsNotNativeToken(address msgSenderaddress nativeToken
Unauthorised(address msgSender
UnexpectedCallback(
UnexpectedTrade(
UnsupportedToken(address token
ZeroAmount(
ZeroDestination(
ZeroPayer(