dydx / main

SoloMargin

0x1e0447b19bb6ecfdae1e4ae1694b0c3659614e4e
Admin
function

ownerSetGlobalOperator

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
operatoraddress
approvedbool

Outputs

(void)
function

ownerSetIsClosing

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
marketIduint256
isClosingbool

Outputs

(void)
function

ownerSetPriceOracle

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
marketIduint256
priceOracleaddress

Outputs

(void)
function

ownerSetMarginRatio

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
ratiotuple

Outputs

(void)
function

ownerAddMarket

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
tokenaddress
priceOracleaddress
interestSetteraddress
marginPremiumtuple
spreadPremiumtuple

Outputs

(void)
function

ownerWithdrawExcessTokens

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
marketIduint256
recipientaddress

Outputs

TypeDescription
uint256
function

ownerSetMarginPremium

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
marketIduint256
marginPremiumtuple

Outputs

(void)
function

ownerSetEarningsRate

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
earningsRatetuple

Outputs

(void)
function

ownerSetLiquidationSpread

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
spreadtuple

Outputs

(void)
function

ownerSetMinBorrowedValue

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
minBorrowedValuetuple

Outputs

(void)
function

ownerWithdrawUnsupportedTokens

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
tokenaddress
recipientaddress

Outputs

TypeDescription
uint256
function

ownerSetInterestSetter

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
marketIduint256
interestSetteraddress

Outputs

(void)
function

ownerSetSpreadPremium

nonpayable
Restricted (onlyOwner, nonReentrant)

Inputs

ParameterTypeDescription
marketIduint256
spreadPremiumtuple

Outputs

(void)
Getters
function

getMarketInterestRate

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
tuple
function

getMarketMarginPremium

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
tuple
function

getAdjustedAccountValues

view

Inputs

ParameterTypeDescription
accounttuple

Outputs

TypeDescription
tuple
tuple
function

getMarket

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
tuple
function

getRiskLimits

view

Inputs

(void)

Outputs

TypeDescription
tuple
function

getEarningsRate

view

Inputs

(void)

Outputs

TypeDescription
tuple
function

getAccountStatus

view

Inputs

ParameterTypeDescription
accounttuple

Outputs

TypeDescription
uint8
function

getMarketCachedIndex

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
tuple
function

getNumExcessTokens

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
tuple
function

getLiquidationSpreadForPair

view

Inputs

ParameterTypeDescription
heldMarketIduint256
owedMarketIduint256

Outputs

TypeDescription
tuple
function

getMarketTotalPar

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
tuple
function

getAccountWei

view

Inputs

ParameterTypeDescription
accounttuple
marketIduint256

Outputs

TypeDescription
tuple
function

getLiquidationSpread

view

Inputs

(void)

Outputs

TypeDescription
tuple
function

getMarketWithInfo

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
tuple
tuple
tuple
tuple
function

getMarketPrice

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
tuple
function

getMinBorrowedValue

view

Inputs

(void)

Outputs

TypeDescription
tuple
function

getAccountBalances

view

Inputs

ParameterTypeDescription
accounttuple

Outputs

TypeDescription
address[]
tuple[]
tuple[]
function

getRiskParams

view

Inputs

(void)

Outputs

TypeDescription
tuple
function

getMarketIsClosing

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
bool
function

getMarketCurrentIndex

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
tuple
function

getMarginRatio

view

Inputs

(void)

Outputs

TypeDescription
tuple
function

getAccountPar

view

Inputs

ParameterTypeDescription
accounttuple
marketIduint256

Outputs

TypeDescription
tuple
function

getIsLocalOperator

view

Inputs

ParameterTypeDescription
owneraddress
operatoraddress

Outputs

TypeDescription
bool
function

getNumMarkets

view

Inputs

(void)

Outputs

TypeDescription
uint256
function

getMarketSpreadPremium

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
tuple
function

getMarketInterestSetter

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
address
function

getMarketPriceOracle

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
address
function

getAccountValues

view

Inputs

ParameterTypeDescription
accounttuple

Outputs

TypeDescription
tuple
tuple
function

getMarketTokenAddress

view

Inputs

ParameterTypeDescription
marketIduint256

Outputs

TypeDescription
address
function

getIsGlobalOperator

view

Inputs

ParameterTypeDescription
operatoraddress

Outputs

TypeDescription
bool
Operation
function

operate

nonpayable
Restricted (nonReentrant)

Inputs

ParameterTypeDescription
accountstuple[]
actionstuple[]

Outputs

(void)
Ownable
function

transferOwnership

nonpayable
Restricted (onlyOwner)

Inputs

ParameterTypeDescription
newOwneraddress

Outputs

(void)
function

renounceOwnership

nonpayable
Restricted (onlyOwner)

Inputs

(void)

Outputs

(void)
function

isOwner

view

Inputs

(void)

Outputs

TypeDescription
bool
function

owner

view

Inputs

(void)

Outputs

TypeDescription
address
event

OwnershipTransferred

Inputs

ParameterTypeDescription
previousOwneraddress
newOwneraddress

Outputs

(void)
Permission
function

setOperators

nonpayable

Inputs

ParameterTypeDescription
argstuple[]

Outputs

(void)
event

LogOperatorSet

Inputs

ParameterTypeDescription
owneraddress
operatoraddress
trustedbool

Outputs

(void)
constructor

nonpayable

Inputs

ParameterTypeDescription
riskParamstuple
riskLimitstuple

Outputs

(void)