Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
31 additional
variables
Balances ($2,350.82)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WETH | ERC-20 | 0.694484 | $3,382.90 |
$2,349.37 | |
USDbC | ERC-20 | 1.395198 | $0.998382 |
$1.39 | |
WGC | ERC-20 | 200 | $0.000306 |
$0.06 | |
kurbi | ERC-20 | 0.1 | $0.000531 |
$0 | |
LIFI | ERC-20 | 21.985557K | -- | -- | |
USDM | ERC-20 | 2.589416K | -- | -- | |
BIU BULL | ERC-20 | 99 | -- | -- | |
XBOO | ERC-20 | 88 | -- | -- | |
BEEY | ERC-20 | 67 | -- | -- | |
| ERC-20 | 30 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
0x2a696e68 | 17420792 | 4 months ago | | | 0 | 3.9788664e-7 | |
| 2653779 | a year ago | | | 0 | 0.000072557503 | |
| 2653746 | a year ago | | | 0 | 0.00012305501 | |
| 2609616 | a year ago | | | 0 | 0.000072557503 | |
| 2609587 | a year ago | | | 0 | 0.00029486251 | |
| 2609529 | a year ago | | | 0 | 0.00026329001 | |
| 2609439 | a year ago | | | 0 | 0.00057876003 | |
| 2493626 | a year ago | | | 0 | 0.0000029023046 | |
| 2493509 | a year ago | | | 0 | 0.0000046939026 | |
| 2493507 | a year ago | | | 0 | 0.0000047648026 |
ABI
ABI objects
Getter at block 22909810
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)
0x067517cc3ea23ac0dedb3fdd4eea72252ba4b817
fundingInterval() view returns (uint256)
3600
fundingRateFactor() view returns (uint256)
100
gov() view returns (address)
0x77bc62764241a2a8e45b69cef0560fc36463b64a
hasDynamicFees() view returns (bool)
true
inManagerMode() view returns (bool)
true
inPrivateLiquidationMode() view returns (bool)
true
includeAmmPrice() view returns (bool)
true
isInitialized() view returns (bool)
true
isLeverageEnabled() view returns (bool)
false
isSwapEnabled() view returns (bool)
false
liquidationFeeUsd() view returns (uint256)
5000000000000000000000000000000
marginFeeBasisPoints() view returns (uint256)
100
maxGasPrice() view returns (uint256)
0
maxLeverage() view returns (uint256)
500000
minProfitTime() view returns (uint256)
10800
mintBurnFeeBasisPoints() view returns (uint256)
25
priceFeed() view returns (address)
0x95670cc1b2bfef1d3bd9ae38cf81691bafd2b005
router() view returns (address)
0xd00c4ad1e462c99369b5e4b79427756ededfce14
stableFundingRateFactor() view returns (uint256)
100
stableSwapFeeBasisPoints() view returns (uint256)
4
stableTaxBasisPoints() view returns (uint256)
5
swapFeeBasisPoints() view returns (uint256)
50
taxBasisPoints() view returns (uint256)
60
totalTokenWeights() view returns (uint256)
100000
usdg() view returns (address)
0xaec117e93f7087c277bb520b80785113d91da11b
useSwapPricing() view returns (bool)
false
vaultUtils() view returns (address)
0x4d97bb5df9d1e0b34ef268d1ec3a9b17afaab737
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.