Vault

Verified contract

Active on Base with 13 txns
Deployed by via 0x37c1a5d3 at 2692337
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
31 additional variables
ERC-20
Value $80.78
ERC-20
Value $50.15
ERC-20
Value $50
ERC-20
Value $0.02
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x9d1521bc339ef218e00b650b2ceaa3d57e543a60f364a0a2d4d4075c47c8029e
0x0d86385a3e06d5a32e9ae68de507ac69e37f5b941782dd41b2fc67be77495089
0x8368c242f5527a29e6f5c4d8458ff51ca952f49c2c02e9331e0390ee4708b1a8
0x6394f496ae42c6775910cbd66ae551a7e112985cb2e9f1458f8f8bd12c3641cd
0x83c56adc0f761d66a5e8ec578248f9ac9895beccae22a0d0b876bed4721bc09b
0x6b1c0655fd25578e9c6f2ece95481c582112596b8f765e4d7cfa2221f800361a
0x2c8117858e9e8987de3d8f4da745b168e393d8ec1c7c0761a08098496c30fa8b
0xcf0a285bb84e40143d8b8de2ef608f4abc36db5d3688fd6d36119dd1018ffd05
0x311a8089fbc3ac0d0cc0730d51d6205fd152da7fc67cad281a83e71ff72041a1
0xcd8eb4854b2ec35c0d94e272a5ae8be899d870c8e62b1fb73bbc82b02d41403f

Functions
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 _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.