dydx
Contract List

The Protocol for Decentralized Margin Trading & Derivatives
dydx

ERC20PositionWithdrawerV2

0xf57263953d4d02707cc26b64b920820cd310a01d
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
ERC20PositionWithdrawerV2function
nonpayable
falsefalse
erc20Position(address)
uint256
ERC20PositionWithdrawerV2function
nonpayable
falsefalse
erc20Position(address)
returnedToken(address)
exchangeWrapper(address)
orderData(bytes)
uint256
uint256
ERC20PositionWithdrawerV2fallback
payable
truefalsevoidvoid
ERC20PositionWithdrawerV2ERC20PositionWithdrawerV2
Ownableconstructor
nonpayable
falsefalse
weth(address)
void
function
view
falsefalse
address
dydx

TokenProxy

0xeafd335c0e72bb89857972ee7a3ba90bd5a2f7fd
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
AccessControlledBaseeventfalsefalse
who(address)
void
AccessControlledBaseeventfalsefalse
who(address)
void
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
_newOwner(address)
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
TokenProxyTokenProxy
Ownableconstructor
nonpayable
falsefalse
gracePeriod(uint256)
void
Ownableeventfalsefalse
previousOwner(address)
newOwner(address)
void
Ownableeventfalsefalse
previousOwner(address)
void
StaticAccessControlledfunction
nonpayable
Restricted (onlyOwner)
falsefalse
who(address)
TokenProxyfunction
nonpayable
Restricted (requiresAuthorization)
falsefalse
token(address)
from(address)
to(address)
value(uint256)
TokenProxyfunction
view
falsefalse
who(address)
token(address)
uint256
function
view
falsefalse
uint256
function
view
falsefalse
(address)
bool
function
view
falsefalse
address
dydx

LimitOrders

0xDEf136D9884528e1EB302f39457af0E4d3AD24EB
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
LimitOrdersfunction
nonpayable
Restricted (onlyOwner)
falsefalse
LimitOrdersfunction
nonpayable
Restricted (onlyOwner)
falsefalse
LimitOrdersfunction
nonpayable
Restricted (onlySolo)
falsefalse
(address)
accountInfo(tuple)
data(bytes)
LimitOrdersfunction
nonpayable
Restricted (onlySolo)
falsefalse
inputMarketId(uint256)
outputMarketId(uint256)
makerAccount(tuple)
takerAccount(tuple)
(tuple)
(tuple)
inputWei(tuple)
data(bytes)
tuple
LimitOrdersfunction
nonpayable
falsefalse
order(tuple)
LimitOrdersfunction
nonpayable
falsefalse
order(tuple)
LimitOrdersfunction
view
falsefalse
orderHashes(bytes32[])
tuple[]
LimitOrderseventfalsefalse
orderHash(bytes32)
orderMaker(address)
makerFillAmount(uint256)
totalMakerFilledAmount(uint256)
void
LimitOrderseventfalsefalse
orderHash(bytes32)
approver(address)
makerMarket(uint256)
takerMarket(uint256)
void
LimitOrderseventfalsefalse
orderHash(bytes32)
canceler(address)
makerMarket(uint256)
takerMarket(uint256)
void
LimitOrderseventfalsefalse
operational(bool)
void
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
newOwner(address)
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
Ownablefunction
view
falsefalse
bool
Ownablefunction
view
falsefalse
address
LimitOrdersLimitOrders
Ownableconstructor
nonpayable
falsefalse
soloMargin(address)
chainId(uint256)
void
Ownableeventfalsefalse
previousOwner(address)
newOwner(address)
void
function
view
falsefalse
bool
function
view
falsefalse
bytes32
function
view
falsefalse
(bytes32)
uint8
function
view
falsefalse
(bytes32)
uint256
function
view
falsefalse
address
dydx

OpenDirectlyExchangeWrapper

0xcb17e969288ae849d5e0717694c5c56e70e798ed
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
OpenDirectlyExchangeWrapperfunction
nonpayable
falsefalse
tradeOriginator(address)
(address)
(address)
takerToken(address)
requestedFillAmount(uint256)
(bytes)
uint256
OpenDirectlyExchangeWrapperfunction
view
falsefalse
(address)
(address)
desiredMakerToken(uint256)
(bytes)
uint256
dydx

PolynomialInterestSetter

0xaEE83ca85Ad63DFA04993adcd76CB2B3589eCa49
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
PolynomialInterestSetterfunction
view
falsefalse
(address)
borrowWei(uint256)
supplyWei(uint256)
tuple
PolynomialInterestSetterfunction
view
falsefalse
uint256[]
PolynomialInterestSetterfunction
view
falsefalse
uint256
PolynomialInterestSetterPolynomialInterestSetter
PolynomialInterestSetterconstructor
nonpayable
falsefalse
params(tuple)
void
dydx

PolynomialInterestSetter

0xad91a0ddf799176a0a87a32dafe8f3dd28479918
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
PolynomialInterestSetterfunction
view
falsefalse
(address)
borrowWei(uint256)
supplyWei(uint256)
tuple
PolynomialInterestSetterfunction
view
falsefalse
uint256[]
PolynomialInterestSetterfunction
view
falsefalse
uint256
PolynomialInterestSetterPolynomialInterestSetter
PolynomialInterestSetterconstructor
nonpayable
falsefalse
params(tuple)
void
dydx

WethPayoutRecipient

0x8418bb725b3ac45ec8fff3791dd8b4e0480cc2a2
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
WethPayoutRecipientfunction
nonpayable
falsefalse
(bytes32)
(uint256)
closer(address)
(address)
(address)
payout(uint256)
(uint256)
(bool)
bool
fallback
payable
truefalsevoidvoid
WethPayoutRecipient
constructor
nonpayable
falsefalse
weth(address)
void
function
view
falsefalse
address
dydx

DutchAuctionCloser

0x686f7d0b698b6780a8ce1d6ae13bb8c813552ff3
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
DutchAuctionCloserfunction
nonpayable
Restricted (onlyMargin)
falsefalse
positionId(bytes32)
closeAmount(uint256)
closer(address)
positionOwner(address)
heldToken(address)
payout(uint256)
totalHeldToken(uint256)
payoutInHeldToken(bool)
bool
DutchAuctionCloserfunction
view
falsefalse
positionId(bytes32)
totalHeldToken(uint256)
uint256
DutchAuctionClosereventfalsefalse
positionId(bytes32)
owner(address)
bidder(address)
closeAmount(uint256)
heldTokenForBidder(uint256)
heldTokenForOwner(uint256)
void
DutchAuctionCloser
constructor
nonpayable
falsefalse
margin(address)
callTimeLimitNumerator(uint256)
callTimeLimitDenominator(uint256)
void
function
view
falsefalse
uint256
function
view
falsefalse
uint256
function
view
falsefalse
address
dydx

EthWrapperForBucketLender

0x61fa58d7ef40d6f6853740330b62ccad34f8bc04
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
EthWrapperForBucketLenderfunction
nonpayable
falsefalse
bucketLender(address)
buckets(uint256[])
maxWeights(uint256[])
uint256,
uint256,
EthWrapperForBucketLenderfunction
payable
truefalse
bucketLender(address)
beneficiary(address)
uint256
fallback
payable
truefalsevoidvoid
EthWrapperForBucketLender
constructor
nonpayable
falsefalse
weth(address)
void
function
view
falsefalse
address
dydx

ERC20PositionWithdrawer

0x5be497a12e92b8deb68da9d0ed9943f8dc3067ca
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
ERC20PositionWithdrawerfunction
nonpayable
Restricted (nonReentrant)
falsefalse
erc20Position(address)
returnedToken(address)
exchangeWrapper(address)
orderData(bytes)
uint256,
uint256,
fallback
payable
truefalsevoidvoid
ERC20PositionWithdrawer
constructor
nonpayable
falsefalse
weth(address)
void
function
view
falsefalse
address
dydx

AuctionProxy

0x57b98aa8a8b69c6295195d153fe6edd0b0d176ac
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
AuctionProxyfunction
nonpayable
falsefalse
positionId(bytes32)
minCloseAmount(uint256)
dutchAuction(address)
exchangeWrapper(address)
orderData(bytes)
uint256
AuctionProxy
constructor
nonpayable
falsefalse
margin(address)
void
function
view
falsefalse
address
dydx

SignedOperationProxy

0x2a842bC64343FAD4Ec4a8424ba7ff3c0A70b6e55
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
newOwner(address)
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
Ownablefunction
view
falsefalse
bool
Ownablefunction
view
falsefalse
address
Ownableeventfalsefalse
previousOwner(address)
newOwner(address)
void
SignedOperationProxyfunction
nonpayable
Restricted (onlyOwner)
falsefalse
SignedOperationProxyfunction
nonpayable
Restricted (onlyOwner)
falsefalse
SignedOperationProxyfunction
nonpayable
falsefalse
accounts(tuple[])
actions(tuple[])
auth(tuple)
SignedOperationProxyfunction
nonpayable
falsefalse
accounts(tuple[])
actions(tuple[])
auths(tuple[])
SignedOperationProxyfunction
view
falsefalse
operationHashes(bytes32[])
bool[]
SignedOperationProxyeventfalsefalse
operationHash(bytes32)
canceler(address)
void
SignedOperationProxyeventfalsefalse
operationHash(bytes32)
signer(address)
sender(address)
void
SignedOperationProxyeventfalsefalse
operational(bool)
void
SignedOperationProxy
constructor
nonpayable
falsefalse
soloMargin(address)
chainId(uint256)
void
function
view
falsefalse
bool
function
view
falsefalse
bytes32
function
view
falsefalse
(bytes32)
bool
function
view
falsefalse
address
dydx

ERC721MarginPosition

0x1098898efacd41e1824cd610f52d0f8690bdc87a
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
ERC721Basiceventfalsefalse
_owner(address)
_operator(address)
_approved(bool)
void
ERC721Basiceventfalsefalse
_owner(address)
_approved(address)
_tokenId(uint256)
void
ERC721Basiceventfalsefalse
_from(address)
_to(address)
_tokenId(uint256)
void
ERC721BasicTokenfunction
nonpayable
falsefalse
_from(address)
_to(address)
_tokenId(uint256)
_data(bytes)
ERC721BasicTokenfunction
nonpayable
falsefalse
_to(address)
_approved(bool)
ERC721BasicTokenfunction
nonpayable
falsefalse
_from(address)
_to(address)
_tokenId(uint256)
ERC721BasicTokenfunction
view
falsefalse
_owner(address)
_operator(address)
bool
ERC721BasicTokenfunction
view
falsefalse
_tokenId(uint256)
address
ERC721BasicTokenfunction
view
falsefalse
_tokenId(uint256)
bool
ERC721BasicTokenfunction
view
falsefalse
_tokenId(uint256)
address
ERC721MarginPositionfunction
nonpayable
Restricted (nonReentrant)
falsefalse
positionIds(bytes32[])
ERC721MarginPositionfunction
nonpayable
Restricted (nonReentrant)
falsefalse
recipient(address)
isApproved(bool)
ERC721MarginPositionfunction
nonpayable
Restricted (nonReentrant)
falsefalse
positionId(bytes32)
ERC721MarginPositionfunction
nonpayable
Restricted (nonReentrant)
falsefalse
positionId(bytes32)
to(address)
ERC721MarginPositionfunction
nonpayable
Restricted (nonReentrant)
falsefalse
closer(address)
isApproved(bool)
ERC721MarginPositionfunction
nonpayable
Restricted (onlyMargin, nonReentrant)
falsefalse
(address)
positionId(bytes32)
(uint256)
address
ERC721MarginPositionfunction
nonpayable
Restricted (onlyMargin, nonReentrant)
falsefalse
from(address)
positionId(bytes32)
address
ERC721MarginPositionfunction
nonpayable
Restricted (onlyMargin, nonReentrant)
falsefalse
(address)
positionId(bytes32)
(uint256)
address
ERC721MarginPositionfunction
nonpayable
Restricted (onlyMargin, nonReentrant)
falsefalse
closer(address)
payoutRecipient(address)
positionId(bytes32)
requestedAmount(uint256)
address
uint256
ERC721MarginPositionfunction
view
falsefalse
positionId(bytes32)
address
ERC721MarginPositioneventfalsefalse
owner(address)
approved(address)
isApproved(bool)
void
ERC721MarginPositioneventfalsefalse
owner(address)
approved(address)
isApproved(bool)
void
ERC721MarginPositioneventfalsefalse
positionId(bytes32)
owner(address)
ownershipSentTo(address)
void
ERC721MarginPositioneventfalsefalse
positionId(bytes32)
owner(address)
void
ERC721Tokenfunction
view
falsefalse
_tokenId(uint256)
string
ERC721Tokenfunction
view
falsefalse
string
ERC721Tokenfunction
view
falsefalse
_index(uint256)
uint256
ERC721Tokenfunction
view
falsefalse
_owner(address)
_index(uint256)
uint256
ERC721Tokenfunction
view
falsefalse
string
GeneralERC20function
nonpayable
falsefalse
_from(address)
_to(address)
_tokenId(uint256)
GeneralERC20function
nonpayable
falsefalse
_to(address)
_tokenId(uint256)
GeneralERC20function
view
falsefalse
_owner(address)
uint256
GeneralERC20function
view
falsefalse
uint256
SupportsInterfaceWithLookupfunction
view
falsefalse
_interfaceId(bytes4)
bool
ERC721MarginPosition
constructor
nonpayable
falsefalse
margin(address)
void
function
view
falsefalse
(address)
(address)
bool
function
view
falsefalse
bytes4
function
view
falsefalse
(address)
(address)
bool
function
view
falsefalse
address
dydx

Expiry

0x0ECE224FBC24D40B446c6a94a142dc41fAe76f2d
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
Expiryfunction
nonpayable
Restricted (onlyOwner)
falsefalse
newExpiryRampTime(uint256)
Expiryfunction
nonpayable
Restricted (onlySolo)
falsefalse
(address)
account(tuple)
data(bytes)
Expiryfunction
nonpayable
Restricted (onlySolo)
falsefalse
inputMarketId(uint256)
outputMarketId(uint256)
makerAccount(tuple)
(tuple)
oldInputPar(tuple)
newInputPar(tuple)
inputWei(tuple)
data(bytes)
tuple
Expiryfunction
view
falsefalse
heldMarketId(uint256)
owedMarketId(uint256)
expiry(uint32)
tuple
tuple
Expiryfunction
view
falsefalse
account(tuple)
marketId(uint256)
uint32
Expiryeventfalsefalse
expiryRampTime(uint256)
void
Expiryeventfalsefalse
owner(address)
number(uint256)
marketId(uint256)
time(uint32)
void
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
newOwner(address)
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
Ownablefunction
view
falsefalse
bool
Ownablefunction
view
falsefalse
address
Ownableeventfalsefalse
previousOwner(address)
newOwner(address)
void
Expiry
constructor
nonpayable
falsefalse
soloMargin(address)
expiryRampTime(uint256)
void
function
view
falsefalse
uint256
function
view
falsefalse
address
dydx

PayableMarginMinter

0x059550a1ca3c46a2adb803e9e3ea4585a34f004a
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
PayableMarginMinterfunction
payable
Restricted (nonReentrant)
truefalse
positionId(bytes32)
addresses(address[7])
values256(uint256[8])
values32(uint32[2])
depositInHeldToken(bool)
signature(bytes)
order(bytes)
uint256
fallback
payable
truefalsevoidvoid
PayableMarginMinter
constructor
nonpayable
falsefalse
margin(address)
weth(address)
void
function
view
falsefalse
address
function
view
falsefalse
address
dydx / 0xExchangeWrapper

ZeroExV2ExchangeWrapper

0xa26d16a21805b14b2977555ffdea34e5e6fc43ba
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
ZeroExV2ExchangeWrapperfunction
nonpayable
falsefalse
tradeOriginator(address)
receiver(address)
makerToken(address)
takerToken(address)
requestedFillAmount(uint256)
orderData(bytes)
uint256
ZeroExV2ExchangeWrapperfunction
view
falsefalse
makerToken(address)
takerToken(address)
orderData(bytes)
uint256
ZeroExV2ExchangeWrapperfunction
view
falsefalse
makerToken(address)
takerToken(address)
desiredMakerToken(uint256)
orderData(bytes)
uint256
ZeroExV2ExchangeWrapper
constructor
nonpayable
falsefalse
zeroExExchange(address)
zeroExProxy(address)
zrxToken(address)
trustedMsgSenders(address[])
void
function
view
falsefalse
(address)
bool
function
view
falsefalse
address
function
view
falsefalse
address
function
view
falsefalse
address
dydx / 0xExchangeWrapper

ZeroExV1ExchangeWrapper

0x5d4b4d9f5274f72d7d4308597d0ea95b97b094cf
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
ZeroExV1ExchangeWrapperfunction
nonpayable
falsefalse
tradeOriginator(address)
receiver(address)
makerToken(address)
takerToken(address)
requestedFillAmount(uint256)
orderData(bytes)
uint256
ZeroExV1ExchangeWrapperfunction
view
falsefalse
makerToken(address)
takerToken(address)
orderData(bytes)
uint256
ZeroExV1ExchangeWrapperfunction
view
falsefalse
(address)
(address)
desiredMakerToken(uint256)
orderData(bytes)
uint256
ZeroExV1ExchangeWrapper
constructor
nonpayable
falsefalse
zeroExExchange(address)
zeroExProxy(address)
zrxToken(address)
trustedMsgSenders(address[])
void
function
view
falsefalse
(address)
bool
function
view
falsefalse
address
function
view
falsefalse
address
function
view
falsefalse
address
dydx / Admin/Ops

AdminImpl

0x8a6629fEba4196E0A61B8E8C94D4905e525bc055
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
AdminImpleventfalsefalse
operator(address)
approved(bool)
void
AdminImpleventfalsefalse
minBorrowedValue(tuple)
void
AdminImpleventfalsefalse
earningsRate(tuple)
void
AdminImpleventfalsefalse
liquidationSpread(tuple)
void
AdminImpleventfalsefalse
marginRatio(tuple)
void
AdminImpleventfalsefalse
marketId(uint256)
spreadPremium(tuple)
void
AdminImpleventfalsefalse
marketId(uint256)
marginPremium(tuple)
void
AdminImpleventfalsefalse
marketId(uint256)
interestSetter(address)
void
AdminImpleventfalsefalse
marketId(uint256)
priceOracle(address)
void
AdminImpleventfalsefalse
marketId(uint256)
isClosing(bool)
void
AdminImpleventfalsefalse
marketId(uint256)
token(address)
void
AdminImpleventfalsefalse
token(address)
amount(uint256)
void
dydx / Admin/Ops

OperationImpl

0x56E7d4520ABFECf10b38368b00723d9BD3c21ee1
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
dydx / Expiry

ExpiryV2

0x739A1DF6725657f6a16dC2d5519DC36FD7911A12
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
ExpiryV2function
nonpayable
Restricted (onlyOwner)
falsefalse
newExpiryRampTime(uint256)
ExpiryV2function
nonpayable
Restricted (onlySolo)
falsefalse
(address)
account(tuple)
data(bytes)
ExpiryV2function
nonpayable
Restricted (onlySolo)
falsefalse
inputMarketId(uint256)
outputMarketId(uint256)
makerAccount(tuple)
(tuple)
oldInputPar(tuple)
newInputPar(tuple)
inputWei(tuple)
data(bytes)
tuple
ExpiryV2function
nonpayable
falsefalse
sender(address)
minTimeDelta(uint32)
ExpiryV2function
view
falsefalse
heldMarketId(uint256)
owedMarketId(uint256)
expiry(uint32)
tuple
tuple
ExpiryV2function
view
falsefalse
account(tuple)
marketId(uint256)
uint32
ExpiryV2eventfalsefalse
approver(address)
sender(address)
minTimeDelta(uint32)
void
ExpiryV2eventfalsefalse
expiryRampTime(uint256)
void
ExpiryV2eventfalsefalse
owner(address)
number(uint256)
marketId(uint256)
time(uint32)
void
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
newOwner(address)
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
Ownablefunction
view
falsefalse
bool
Ownablefunction
view
falsefalse
address
Ownableeventfalsefalse
previousOwner(address)
newOwner(address)
void
ExpiryV2
constructor
nonpayable
falsefalse
soloMargin(address)
expiryRampTime(uint256)
void
function
view
falsefalse
uint256
function
view
falsefalse
address
function
view
falsefalse
(address)
(address)
uint32
dydx / Factory

BucketLenderFactory

0xfbc08a66f8bac391f21472d9625c1092ff41cc04
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
BucketLenderFactoryfunction
nonpayable
falsefalse
positionId(bytes32)
owner(address)
heldToken(address)
owedToken(address)
parameters(uint32[7])
marginCallers(address[])
withdrawers(address[])
address
BucketLenderFactoryeventfalsefalse
creator(address)
owner(address)
positionId(bytes32)
at(address)
void
BucketLenderFactory
constructor
nonpayable
falsefalse
margin(address)
void
function
view
falsefalse
address
dydx / Factory

ERC20ShortFactory

0xc72786ad71b5ef5326299409d5fe6912c05635ab
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
ERC20Positionfunction
nonpayable
Restricted (onlyMargin, nonReentrant, onlyState, onlyPosition)
falsefalse
from(address)
positionId(bytes32)
address
ERC20PositionFactoryeventfalsefalse
positionId(bytes32)
tokenAddress(address)
void
ERC20ShortFactory
constructor
nonpayable
falsefalse
margin(address)
trustedRecipients(address[])
trustedWithdrawers(address[])
void
function
view
falsefalse
(uint256)
address
function
view
falsefalse
(uint256)
address
function
view
falsefalse
address
dydx / Factory

ERC20LongFactory

0x2657eca107d7c2abcf72c7a97c8eeef863c22507
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
ERC20PositionFactoryfunction
nonpayable
Restricted (onlyMargin)
falsefalse
from(address)
positionId(bytes32)
address
ERC20PositionFactoryeventfalsefalse
positionId(bytes32)
tokenAddress(address)
void
ERC20LongFactory
constructor
nonpayable
falsefalse
margin(address)
trustedRecipients(address[])
trustedWithdrawers(address[])
void
function
view
falsefalse
(uint256)
address
function
view
falsefalse
(uint256)
address
function
view
falsefalse
address
dydx / OasisDex

OasisV2SimpleExchangeWrapper

0xf85baccc3e7fd4b6a49818fc46503bb51539d554
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
OasisV2SimpleExchangeWrapperfunction
nonpayable
falsefalse
(address)
receiver(address)
makerToken(address)
takerToken(address)
requestedFillAmount(uint256)
orderData(bytes)
uint256
OasisV2SimpleExchangeWrapperfunction
view
falsefalse
makerToken(address)
takerToken(address)
orderData(bytes)
uint256
OasisV2SimpleExchangeWrapperfunction
view
falsefalse
makerToken(address)
takerToken(address)
desiredMakerToken(uint256)
orderData(bytes)
uint256
OasisV2SimpleExchangeWrapper
constructor
nonpayable
falsefalse
simpleMarket(address)
void
function
view
falsefalse
address
dydx / OasisDex

OasisV1MatchingExchangeWrapper

0xd72136c6da6ae959b5960c204edf8bc260087bca
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
OasisV1MatchingExchangeWrapperfunction
nonpayable
falsefalse
(address)
receiver(address)
makerToken(address)
takerToken(address)
requestedFillAmount(uint256)
orderData(bytes)
uint256
OasisV1MatchingExchangeWrapperfunction
view
falsefalse
makerToken(address)
takerToken(address)
orderData(bytes)
uint256
OasisV1MatchingExchangeWrapperfunction
view
falsefalse
makerToken(address)
takerToken(address)
desiredMakerToken(uint256)
orderData(bytes)
uint256
OasisV1MatchingExchangeWrapper
constructor
nonpayable
falsefalse
matchingMarket(address)
void
function
view
falsefalse
address
dydx / OasisDex

OasisV3SimpleExchangeWrapper

0x89b5925a310b22e3e51cf9e2b3405a8c9b680835
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
OasisV3SimpleExchangeWrapperfunction
nonpayable
falsefalse
(address)
receiver(address)
makerToken(address)
takerToken(address)
requestedFillAmount(uint256)
orderData(bytes)
uint256
OasisV3SimpleExchangeWrapperfunction
view
falsefalse
makerToken(address)
takerToken(address)
orderData(bytes)
uint256
OasisV3SimpleExchangeWrapperfunction
view
falsefalse
makerToken(address)
takerToken(address)
desiredMakerToken(uint256)
orderData(bytes)
uint256
OasisV3SimpleExchangeWrapper
constructor
nonpayable
falsefalse
simpleMarket(address)
void
function
view
falsefalse
address
dydx / PriceOracle

WethPriceOracle

0xf61ae328463cd997c7b58e7045cdc613e1cfdb69
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
WethPriceOraclefunction
view
falsefalse
(address)
tuple
WethPriceOracleWethPriceOracle
WethPriceOracleconstructor
nonpayable
falsefalse
medianizer(address)
void
function
view
falsefalse
address
function
view
falsefalse
uint256
dydx / PriceOracle

DaiPriceOracle

0xccfcF083335633C48e99872899586113A2BD08D8
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
DaiPriceOraclefunction
nonpayable
Restricted (onlyOwner)
falsefalse
newPoker(address)
DaiPriceOraclefunction
nonpayable
falsefalse
minimum(tuple)
maximum(tuple)
tuple
DaiPriceOraclefunction
view
falsefalse
tuple
DaiPriceOraclefunction
view
falsefalse
ethUsd(tuple)
tuple
DaiPriceOraclefunction
view
falsefalse
(address)
tuple
DaiPriceOraclefunction
view
falsefalse
ethUsd(tuple)
tuple
DaiPriceOraclefunction
view
falsefalse
tuple
DaiPriceOraclefunction
view
falsefalse
tuple
DaiPriceOracleeventfalsefalse
newPriceInfo(tuple)
void
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
newOwner(address)
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
Ownablefunction
view
falsefalse
bool
Ownablefunction
view
falsefalse
address
Ownableeventfalsefalse
previousOwner(address)
newOwner(address)
void
DaiPriceOracle
constructor
nonpayable
falsefalse
poker(address)
weth(address)
dai(address)
medianizer(address)
oasis(address)
uniswap(address)
oasisEthAmount(uint256)
deviationParams(tuple)
void
function
view
falsefalse
address
function
view
falsefalse
address
function
view
falsefalse
uint128
uint32
function
view
falsefalse
address
function
view
falsefalse
uint256
function
view
falsefalse
address
function
view
falsefalse
address
function
view
falsefalse
uint256
function
view
falsefalse
uint64
uint64
uint64
function
view
falsefalse
address
dydx / PriceOracle

SAIPriceOracle - DaiPriceOracle

0x787F552BDC17332c98aA360748884513e3cB401a
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
DaiPriceOraclefunction
nonpayable
Restricted (onlyOwner)
falsefalse
newPoker(address)
DaiPriceOraclefunction
nonpayable
falsefalse
minimum(tuple)
maximum(tuple)
tuple
DaiPriceOraclefunction
view
falsefalse
tuple
DaiPriceOraclefunction
view
falsefalse
ethUsd(tuple)
tuple
DaiPriceOraclefunction
view
falsefalse
(address)
tuple
DaiPriceOraclefunction
view
falsefalse
ethUsd(tuple)
tuple
DaiPriceOraclefunction
view
falsefalse
tuple
DaiPriceOraclefunction
view
falsefalse
tuple
DaiPriceOracleeventfalsefalse
newPriceInfo(tuple)
void
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
newOwner(address)
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
Ownablefunction
view
falsefalse
bool
Ownablefunction
view
falsefalse
address
Ownableeventfalsefalse
previousOwner(address)
newOwner(address)
void
DaiPriceOracle
constructor
nonpayable
falsefalse
poker(address)
weth(address)
dai(address)
medianizer(address)
oasis(address)
uniswap(address)
oasisEthAmount(uint256)
deviationParams(tuple)
void
function
view
falsefalse
address
function
view
falsefalse
address
function
view
falsefalse
uint128
uint32
function
view
falsefalse
address
function
view
falsefalse
uint256
function
view
falsefalse
address
function
view
falsefalse
address
function
view
falsefalse
uint256
function
view
falsefalse
uint64
uint64
uint64
function
view
falsefalse
address
dydx / PriceOracle

UsdcPriceOracle

0x52f1c952A48a4588f9ae615d38cfdbf8dF036e60
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
UsdcPriceOraclefunction
view
falsefalse
(address)
tuple
function
view
falsefalse
uint256
dydx / Vault

Vault

0x5199071825cc1d6cd019b0d7d42b08106f6cf16d
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
AccessControlledBaseeventfalsefalse
who(address)
void
AccessControlledBaseeventfalsefalse
who(address)
void
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
_newOwner(address)
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
Ownableeventfalsefalse
previousOwner(address)
newOwner(address)
void
Ownableeventfalsefalse
previousOwner(address)
void
StaticAccessControlledfunction
nonpayable
Restricted (onlyOwner)
falsefalse
who(address)
Vaultfunction
nonpayable
Restricted (onlyOwner)
falsefalse
token(address)
to(address)
uint256
Vaultfunction
nonpayable
Restricted (requiresAuthorization)
falsefalse
id(bytes32)
token(address)
from(address)
amount(uint256)
Vaultfunction
nonpayable
Restricted (requiresAuthorization)
falsefalse
id(bytes32)
token(address)
to(address)
amount(uint256)
Vaulteventfalsefalse
token(address)
to(address)
caller(address)
void
Vault
constructor
nonpayable
falsefalse
proxy(address)
gracePeriod(uint256)
void
function
view
falsefalse
uint256
function
view
falsefalse
address
function
view
falsefalse
(bytes32)
(address)
uint256
function
view
falsefalse
(address)
bool
function
view
falsefalse
(address)
uint256
function
view
falsefalse
address
dydx / WETH Wrapper Proxy

PayableProxyForSoloMargin

0xa8b39829cE2246f89B31C013b8Cde15506Fb9A76
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
PayableProxyForSoloMarginfunction
payable
Restricted (nonReentrant)
truefalse
accounts(tuple[])
actions(tuple[])
sendEthTo(address)
PayableProxyForSoloMarginfallback
payable
truefalsevoidvoid
PayableProxyForSoloMarginPayableProxyForSoloMargin
ReentrancyGuardconstructor
nonpayable
falsefalse
soloMargin(address)
weth(address)
void
function
view
falsefalse
address
function
view
falsefalse
address
dydx / main

SoloMargin

0x1e0447b19bb6ecfdae1e4ae1694b0c3659614e4e
View ABI Document / Source Code
NameContract / LibraryNameTypeStateMutabilityModifiersPayableAnonymousInputsOutputs
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
operator(address)
approved(bool)
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
marketId(uint256)
isClosing(bool)
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
marketId(uint256)
priceOracle(address)
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
ratio(tuple)
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
token(address)
priceOracle(address)
interestSetter(address)
marginPremium(tuple)
spreadPremium(tuple)
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
marketId(uint256)
recipient(address)
uint256
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
marketId(uint256)
marginPremium(tuple)
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
earningsRate(tuple)
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
spread(tuple)
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
minBorrowedValue(tuple)
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
token(address)
recipient(address)
uint256
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
marketId(uint256)
interestSetter(address)
Adminfunction
nonpayable
Restricted (onlyOwner, nonReentrant)
falsefalse
marketId(uint256)
spreadPremium(tuple)
Gettersfunction
view
falsefalse
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
account(tuple)
tuple
tuple
Gettersfunction
view
falsefalse
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
tuple
Gettersfunction
view
falsefalse
tuple
Gettersfunction
view
falsefalse
account(tuple)
uint8
Gettersfunction
view
falsefalse
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
heldMarketId(uint256)
owedMarketId(uint256)
tuple
Gettersfunction
view
falsefalse
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
account(tuple)
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
tuple
Gettersfunction
view
falsefalse
marketId(uint256)
tuple
tuple
tuple
tuple
Gettersfunction
view
falsefalse
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
tuple
Gettersfunction
view
falsefalse
account(tuple)
address[]
tuple[]
tuple[]
Gettersfunction
view
falsefalse
tuple
Gettersfunction
view
falsefalse
marketId(uint256)
bool
Gettersfunction
view
falsefalse
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
tuple
Gettersfunction
view
falsefalse
account(tuple)
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
owner(address)
operator(address)
bool
Gettersfunction
view
falsefalse
uint256
Gettersfunction
view
falsefalse
marketId(uint256)
tuple
Gettersfunction
view
falsefalse
marketId(uint256)
address
Gettersfunction
view
falsefalse
marketId(uint256)
address
Gettersfunction
view
falsefalse
account(tuple)
tuple
tuple
Gettersfunction
view
falsefalse
marketId(uint256)
address
Gettersfunction
view
falsefalse
operator(address)
bool
Operationfunction
nonpayable
Restricted (nonReentrant)
falsefalse
accounts(tuple[])
actions(tuple[])
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
newOwner(address)
Ownablefunction
nonpayable
Restricted (onlyOwner)
falsefalse
Ownablefunction
view
falsefalse
bool
Ownablefunction
view
falsefalse
address
Ownableeventfalsefalse
previousOwner(address)
newOwner(address)
void
Permissionfunction
nonpayable
falsefalse
args(tuple[])
Permissioneventfalsefalse
owner(address)
operator(address)
trusted(bool)
void
SoloMargin
constructor
nonpayable
falsefalse
riskParams(tuple)
riskLimits(tuple)
void