Vault

Verified contract

Active on Base with 23 txns
Deployed by via 0xb641b11d at 2492272
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
31 additional variables
ERC-20
Value $2,349.37
ERC-20
Value $1.39
ERC-20
Value $0.06
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x6a983735d64545777cc6beb94d4baa966f4f964b3f74d0e063973134362f18aa
0xd8808f27b137dbef3c1a6ccde312282e4a2dbfe7cc7d118f0f0e34785b867cb9
0x733b60121789f95f22c071e9edb6b59dac49d2688b1670aa9c35b6e365f3d04d
0xa73ccbe6c1234b90fffc78e43214f41ce3089b57200272b89564c58fb16bc2b7
0xcdfa385a78d688bf648ea710b8d47a853436c660e042978e89f1b80d05521848
0x8d61cb8271d2a8d2812100445fbf4a6c6e8150597f12519b1d02c4628aa19edd
0xc6daaedd4aceacd1de5655366258dd22078f159c98dd88eda8e95b1f8903418a
0x6e9224d9617dbae1b7e2025af2e0253732297e6302127d9429abd556b7f61bbc
0x0ed547852999ba7da5d58476d6b3d2f3782d28a7344b01d472d2f49648ceb6ba
0x4b53a9e5af667d3aa874687e2da07ec28026738476c08de4d4801b89e99a41c7

Functions
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 _amountaddress _tokenDivaddress _tokenMulview returns (uint256)
allWhitelistedTokens(uint256view returns (address)
approvedRouters(addressaddressview returns (bool)
bufferAmounts(addressview returns (uint256)
cumulativeFundingRates(addressview returns (uint256)
errors(uint256view returns (string)
feeReserves(addressview returns (uint256)
getDelta(address _indexTokenuint256 _sizeuint256 _averagePricebool _isLonguint256 _lastIncreasedTimeview returns (booluint256)
getEntryFundingRate(address _collateralTokenaddress _indexTokenbool _isLongview returns (uint256)
getFeeBasisPoints(address _tokenuint256 _usdgDeltauint256 _feeBasisPointsuint256 _taxBasisPointsbool _incrementview returns (uint256)
getFundingFee(address _accountaddress _collateralTokenaddress _indexTokenbool _isLonguint256 _sizeuint256 _entryFundingRateview returns (uint256)
getGlobalShortDelta(address _tokenview returns (booluint256)
getMaxPrice(address _tokenview returns (uint256)
getMinPrice(address _tokenview returns (uint256)
getNextAveragePrice(address _indexTokenuint256 _sizeuint256 _averagePricebool _isLonguint256 _nextPriceuint256 _sizeDeltauint256 _lastIncreasedTimeview returns (uint256)
getNextFundingRate(address _tokenview returns (uint256)
getNextGlobalShortAveragePrice(address _indexTokenuint256 _nextPriceuint256 _sizeDeltaview returns (uint256)
getPosition(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongview returns (uint256uint256uint256uint256uint256uint256booluint256)
getPositionDelta(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongview returns (booluint256)
getPositionFee(address _accountaddress _collateralTokenaddress _indexTokenbool _isLonguint256 _sizeDeltaview returns (uint256)
getPositionKey(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongpure returns (bytes32)
getPositionLeverage(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongview returns (uint256)
getRedemptionAmount(address _tokenuint256 _usdgAmountview returns (uint256)
getRedemptionCollateral(address _tokenview returns (uint256)
getRedemptionCollateralUsd(address _tokenview returns (uint256)
getTargetUsdgAmount(address _tokenview returns (uint256)
getUtilisation(address _tokenview returns (uint256)
globalShortAveragePrices(addressview returns (uint256)
globalShortSizes(addressview returns (uint256)
guaranteedUsd(addressview returns (uint256)
isLiquidator(addressview returns (bool)
isManager(addressview returns (bool)
lastFundingTimes(addressview returns (uint256)
maxGlobalShortSizes(addressview returns (uint256)
maxUsdgAmounts(addressview returns (uint256)
minProfitBasisPoints(addressview returns (uint256)
poolAmounts(addressview returns (uint256)
positions(bytes32view returns (uint256 sizeuint256 collateraluint256 averagePriceuint256 entryFundingRateuint256 reserveAmountint256 realisedPnluint256 lastIncreasedTime)
reservedAmounts(addressview returns (uint256)
shortableTokens(addressview returns (bool)
stableTokens(addressview returns (bool)
tokenBalances(addressview returns (uint256)
tokenDecimals(addressview returns (uint256)
tokenToUsdMin(address _tokenuint256 _tokenAmountview returns (uint256)
tokenWeights(addressview returns (uint256)
usdToToken(address _tokenuint256 _usdAmountuint256 _priceview returns (uint256)
usdToTokenMax(address _tokenuint256 _usdAmountview returns (uint256)
usdToTokenMin(address _tokenuint256 _usdAmountview returns (uint256)
usdgAmounts(addressview returns (uint256)
validateLiquidation(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongbool _raiseview returns (uint256uint256)
whitelistedTokens(addressview returns (bool)
State-modifying
addRouter(address _router
buyUSDG(address _tokenaddress _receiverreturns (uint256)
clearTokenConfig(address _token
decreasePosition(address _accountaddress _collateralTokenaddress _indexTokenuint256 _collateralDeltauint256 _sizeDeltabool _isLongaddress _receiverreturns (uint256)
directPoolDeposit(address _token
increasePosition(address _accountaddress _collateralTokenaddress _indexTokenuint256 _sizeDeltabool _isLong
initialize(address _routeraddress _usdgaddress _priceFeeduint256 _liquidationFeeUsduint256 _fundingRateFactoruint256 _stableFundingRateFactor
liquidatePosition(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongaddress _feeReceiver
removeRouter(address _router
sellUSDG(address _tokenaddress _receiverreturns (uint256)
setBufferAmount(address _tokenuint256 _amount
setError(uint256 _errorCodestring _error
setErrorController(address _errorController
setFees(uint256 _taxBasisPointsuint256 _stableTaxBasisPointsuint256 _mintBurnFeeBasisPointsuint256 _swapFeeBasisPointsuint256 _stableSwapFeeBasisPointsuint256 _marginFeeBasisPointsuint256 _liquidationFeeUsduint256 _minProfitTimebool _hasDynamicFees
setFundingRate(uint256 _fundingIntervaluint256 _fundingRateFactoruint256 _stableFundingRateFactor
setGov(address _gov
setInManagerMode(bool _inManagerMode
setInPrivateLiquidationMode(bool _inPrivateLiquidationMode
setIsLeverageEnabled(bool _isLeverageEnabled
setIsSwapEnabled(bool _isSwapEnabled
setLiquidator(address _liquidatorbool _isActive
setManager(address _managerbool _isManager
setMaxGasPrice(uint256 _maxGasPrice
setMaxGlobalShortSize(address _tokenuint256 _amount
setMaxLeverage(uint256 _maxLeverage
setPriceFeed(address _priceFeed
setTokenConfig(address _tokenuint256 _tokenDecimalsuint256 _tokenWeightuint256 _minProfitBpsuint256 _maxUsdgAmountbool _isStablebool _isShortable
setUsdgAmount(address _tokenuint256 _amount
setVaultUtils(address _vaultUtils
swap(address _tokenInaddress _tokenOutaddress _receiverreturns (uint256)
updateCumulativeFundingRate(address _collateralTokenaddress _indexToken
upgradeVault(address _newVaultaddress _tokenuint256 _amount
withdrawFees(address _tokenaddress _receiverreturns (uint256)
Events
BuyUSDG(address accountaddress tokenuint256 tokenAmountuint256 usdgAmountuint256 feeBasisPoints
ClosePosition(bytes32 keyuint256 sizeuint256 collateraluint256 averagePriceuint256 entryFundingRateuint256 reserveAmountint256 realisedPnl
CollectMarginFees(address tokenuint256 feeUsduint256 feeTokens
CollectSwapFees(address tokenuint256 feeUsduint256 feeTokens
DecreaseGuaranteedUsd(address tokenuint256 amount
DecreasePoolAmount(address tokenuint256 amount
DecreasePosition(bytes32 keyaddress accountaddress collateralTokenaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLonguint256 priceuint256 fee
DecreaseReservedAmount(address tokenuint256 amount
DecreaseUsdgAmount(address tokenuint256 amount
DirectPoolDeposit(address tokenuint256 amount
IncreaseGuaranteedUsd(address tokenuint256 amount
IncreasePoolAmount(address tokenuint256 amount
IncreasePosition(bytes32 keyaddress accountaddress collateralTokenaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLonguint256 priceuint256 fee
IncreaseReservedAmount(address tokenuint256 amount
IncreaseUsdgAmount(address tokenuint256 amount
LiquidatePosition(bytes32 keyaddress accountaddress collateralTokenaddress indexTokenbool isLonguint256 sizeuint256 collateraluint256 reserveAmountint256 realisedPnluint256 markPrice
SellUSDG(address accountaddress tokenuint256 usdgAmountuint256 tokenAmountuint256 feeBasisPoints
Swap(address accountaddress tokenInaddress tokenOutuint256 amountInuint256 amountOutuint256 amountOutAfterFeesuint256 feeBasisPoints
UpdateFundingRate(address tokenuint256 fundingRate
UpdatePnl(bytes32 keybool hasProfituint256 delta
UpdatePosition(bytes32 keyuint256 sizeuint256 collateraluint256 averagePriceuint256 entryFundingRateuint256 reserveAmountint256 realisedPnluint256 markPrice
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.