Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
31 additional
variables
Balances ($180.94)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WETH | ERC-20 | 0.029726 | $2,717.35 |
$80.78 | |
DAI | ERC-20 | 50 | $1.003 |
$50.15 | |
USDbC | ERC-20 | 50 | $0.999909 |
$50 | |
WGC | ERC-20 | 200 | $0.000105 |
$0.02 | |
kurbi | ERC-20 | 0.1 | $0.000723 |
$0 | |
BLOOM | ERC-20 | 1 | $0.000046 |
$0 | |
BASED | ERC-20 | 5.444K | -- | -- | |
PEP | ERC-20 | 61.2 | -- | -- | |
| ERC-20 | 30 | -- | -- | |
| ERC-20 | 30 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
0xf09f92a8 | 17425811 | 3 months ago | | | 0 | 5.7124577e-7 | |
| 2692782 | a year ago | | | 0 | 0.000000000012189660 | |
| 2692778 | a year ago | | | 0 | 0.000000000099438360 | |
| 2692775 | a year ago | | | 0 | 0.000000000099438360 | |
| 2692771 | a year ago | | | 0 | 0.000000000120991920 | |
| 2692663 | a year ago | | | 0 | 0.000000000019714380 | |
| 2692412 | a year ago | | | 0 | 0.000000000012636960 | |
| 2692402 | a year ago | | | 0 | 0.000000000019971420 | |
| 2692396 | a year ago | | | 0 | 0.000000000039741240 | |
| 2692392 | a year ago | | | 0 | 0.000000000020162100 |
ABI
ABI objects
Getter at block 21754306
BASIS_POINTS_DIVISOR() view returns (uint256)
10000
FUNDING_RATE_PRECISION() view returns (uint256)
1000000
MAX_FEE_BASIS_POINTS() view returns (uint256)
500
MAX_FUNDING_RATE_FACTOR() view returns (uint256)
10000
MAX_LIQUIDATION_FEE_USD() view returns (uint256)
100000000000000000000000000000000
MIN_FUNDING_RATE_INTERVAL() view returns (uint256)
3600
MIN_LEVERAGE() view returns (uint256)
10000
PRICE_PRECISION() view returns (uint256)
1000000000000000000000000000000
USDG_DECIMALS() view returns (uint256)
18
allWhitelistedTokensLength() view returns (uint256)
3
errorController() view returns (address)
0xad5f9893df3a39d9641b36dd815c1a12e15e24e5
fundingInterval() view returns (uint256)
3600
fundingRateFactor() view returns (uint256)
100
gov() view returns (address)
0x9b9334d02983784c713843278fbd05343b120f91
hasDynamicFees() view returns (bool)
true
inManagerMode() view returns (bool)
true
inPrivateLiquidationMode() view returns (bool)
false
includeAmmPrice() view returns (bool)
true
isInitialized() view returns (bool)
true
isLeverageEnabled() view returns (bool)
false
isSwapEnabled() view returns (bool)
true
liquidationFeeUsd() view returns (uint256)
2000000000000000000000000000000
marginFeeBasisPoints() view returns (uint256)
500
maxGasPrice() view returns (uint256)
0
maxLeverage() view returns (uint256)
50000
minProfitTime() view returns (uint256)
10800
mintBurnFeeBasisPoints() view returns (uint256)
20
priceFeed() view returns (address)
0xcd3b51d98478d53f4515a306be565c6eebef1d58
router() view returns (address)
0x96b244391d98b62d19ae89b1a4dccf0fc56970c7
stableFundingRateFactor() view returns (uint256)
100
stableSwapFeeBasisPoints() view returns (uint256)
1
stableTaxBasisPoints() view returns (uint256)
5
swapFeeBasisPoints() view returns (uint256)
20
taxBasisPoints() view returns (uint256)
10
totalTokenWeights() view returns (uint256)
10000
usdg() view returns (address)
0x1336de031123f903cb6f26624f2d3cbccddf0b8e
useSwapPricing() view returns (bool)
false
vaultUtils() view returns (address)
0x752b2876d0e865f9140dcdeda006a8c5ccbf59b1
whitelistedTokenCount() view returns (uint256)
3
Read-only
adjustForDecimals(uint256 _amount, address _tokenDiv, address _tokenMul) view returns (uint256)
allWhitelistedTokens(uint256) view returns (address)
approvedRouters(address, address) view returns (bool)
bufferAmounts(address) view returns (uint256)
cumulativeFundingRates(address) view returns (uint256)
errors(uint256) view returns (string)
feeReserves(address) view returns (uint256)
getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) view returns (bool, uint256)
getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) view returns (uint256)
getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) view returns (uint256)
getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) view returns (uint256)
getGlobalShortDelta(address _token) view returns (bool, uint256)
getMaxPrice(address _token) view returns (uint256)
getMinPrice(address _token) view returns (uint256)
getNextAveragePrice(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _nextPrice, uint256 _sizeDelta, uint256 _lastIncreasedTime) view returns (uint256)
getNextFundingRate(address _token) view returns (uint256)
getNextGlobalShortAveragePrice(address _indexToken, uint256 _nextPrice, uint256 _sizeDelta) view returns (uint256)
getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns (uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256)
getPositionDelta(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns (bool, uint256)
getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) view returns (uint256)
getPositionKey(address _account, address _collateralToken, address _indexToken, bool _isLong) pure returns (bytes32)
getPositionLeverage(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns (uint256)
getRedemptionAmount(address _token, uint256 _usdgAmount) view returns (uint256)
getRedemptionCollateral(address _token) view returns (uint256)
getRedemptionCollateralUsd(address _token) view returns (uint256)
getTargetUsdgAmount(address _token) view returns (uint256)
getUtilisation(address _token) view returns (uint256)
globalShortAveragePrices(address) view returns (uint256)
globalShortSizes(address) view returns (uint256)
guaranteedUsd(address) view returns (uint256)
isLiquidator(address) view returns (bool)
isManager(address) view returns (bool)
lastFundingTimes(address) view returns (uint256)
maxGlobalShortSizes(address) view returns (uint256)
maxUsdgAmounts(address) view returns (uint256)
minProfitBasisPoints(address) view returns (uint256)
poolAmounts(address) view returns (uint256)
positions(bytes32) view returns (uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 lastIncreasedTime)
reservedAmounts(address) view returns (uint256)
shortableTokens(address) view returns (bool)
stableTokens(address) view returns (bool)
tokenBalances(address) view returns (uint256)
tokenDecimals(address) view returns (uint256)
tokenToUsdMin(address _token, uint256 _tokenAmount) view returns (uint256)
tokenWeights(address) view returns (uint256)
usdToToken(address _token, uint256 _usdAmount, uint256 _price) view returns (uint256)
usdToTokenMax(address _token, uint256 _usdAmount) view returns (uint256)
usdToTokenMin(address _token, uint256 _usdAmount) view returns (uint256)
usdgAmounts(address) view returns (uint256)
validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) view returns (uint256, uint256)
whitelistedTokens(address) view returns (bool)
State-modifying
Events addRouter(address _router)
buyUSDG(address _token, address _receiver) returns (uint256)
clearTokenConfig(address _token)
decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) returns (uint256)
directPoolDeposit(address _token)
increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong)
initialize(address _router, address _usdg, address _priceFeed, uint256 _liquidationFeeUsd, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor)
liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver)
removeRouter(address _router)
sellUSDG(address _token, address _receiver) returns (uint256)
setBufferAmount(address _token, uint256 _amount)
setError(uint256 _errorCode, string _error)
setErrorController(address _errorController)
setFees(uint256 _taxBasisPoints, uint256 _stableTaxBasisPoints, uint256 _mintBurnFeeBasisPoints, uint256 _swapFeeBasisPoints, uint256 _stableSwapFeeBasisPoints, uint256 _marginFeeBasisPoints, uint256 _liquidationFeeUsd, uint256 _minProfitTime, bool _hasDynamicFees)
setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor)
setGov(address _gov)
setInManagerMode(bool _inManagerMode)
setInPrivateLiquidationMode(bool _inPrivateLiquidationMode)
setIsLeverageEnabled(bool _isLeverageEnabled)
setIsSwapEnabled(bool _isSwapEnabled)
setLiquidator(address _liquidator, bool _isActive)
setManager(address _manager, bool _isManager)
setMaxGasPrice(uint256 _maxGasPrice)
setMaxGlobalShortSize(address _token, uint256 _amount)
setMaxLeverage(uint256 _maxLeverage)
setPriceFeed(address _priceFeed)
setTokenConfig(address _token, uint256 _tokenDecimals, uint256 _tokenWeight, uint256 _minProfitBps, uint256 _maxUsdgAmount, bool _isStable, bool _isShortable)
setUsdgAmount(address _token, uint256 _amount)
setVaultUtils(address _vaultUtils)
swap(address _tokenIn, address _tokenOut, address _receiver) returns (uint256)
updateCumulativeFundingRate(address _collateralToken, address _indexToken)
upgradeVault(address _newVault, address _token, uint256 _amount)
withdrawFees(address _token, address _receiver) returns (uint256)
BuyUSDG(address account, address token, uint256 tokenAmount, uint256 usdgAmount, uint256 feeBasisPoints)
ClosePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl)
CollectMarginFees(address token, uint256 feeUsd, uint256 feeTokens)
CollectSwapFees(address token, uint256 feeUsd, uint256 feeTokens)
DecreaseGuaranteedUsd(address token, uint256 amount)
DecreasePoolAmount(address token, uint256 amount)
DecreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)
DecreaseReservedAmount(address token, uint256 amount)
DecreaseUsdgAmount(address token, uint256 amount)
DirectPoolDeposit(address token, uint256 amount)
IncreaseGuaranteedUsd(address token, uint256 amount)
IncreasePoolAmount(address token, uint256 amount)
IncreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)
IncreaseReservedAmount(address token, uint256 amount)
IncreaseUsdgAmount(address token, uint256 amount)
LiquidatePosition(bytes32 key, address account, address collateralToken, address indexToken, bool isLong, uint256 size, uint256 collateral, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)
SellUSDG(address account, address token, uint256 usdgAmount, uint256 tokenAmount, uint256 feeBasisPoints)
Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 amountOutAfterFees, uint256 feeBasisPoints)
UpdateFundingRate(address token, uint256 fundingRate)
UpdatePnl(bytes32 key, bool hasProfit, uint256 delta)
UpdatePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)
constructor()
This contract contains no fallback and receive objects.
This contract contains no error objects.