Vault

Verified contract

Active on Base with 8 txns
Deployed by via 0x233f0c58 at 2520695
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
19 additional variables
ERC-20
Value $5,134.57
ERC-20
Value $153.95
ERC-20
Value $85.84
ERC-20
Value $13.4
ERC-20
Value $0.07
ERC-20
Value $0.02
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
0xe9ba24a2cc7eeb57ca233c5626848dc1d4dedbe33bf36760a04553b65bce4f0e
0x15fe771fc15e3a441e84290e89c0ce559ec3a7d94082f9593a3dc1ba275a1698
0x361f3aebef2a6d05c981dab0d8bbe409f4c39bfba63a13ec3865000610e165e2
0x2fe93ea50d1a5d69d50e280382973bbb6bea4e858c8bb3f6187a2761b3db827d
0xad5a375acaacbe6e454181805db35c552d89159c6606d0956fe2fb8e1c19a74e
0x736a38fd6ae5e66f3cca9c9d9b1138e4bf5a8462af38bb917a1832803b38e6dd
0xe5611558a9a12e7b1cbbfce606d5c71a787beea26e27b5d9415d521f9ae3762f
0x593ebffc86a2db892813c2ed5648dc4ff3d750c989f97da8803ff910849565a5

Functions
Getter at block 21754378
BASIS_POINTS_DIVISOR(view returns (uint256)
10000
FUNDING_RATE_PRECISION(view returns (uint256)
1000000
MIN_LEVERAGE(view returns (uint256)
10000
PRICE_PRECISION(view returns (uint256)
1000000000000000000000000000000
USDF_DECIMALS(view returns (uint256)
18
allWhitelistedTokensLength(view returns (uint256)
5
errorController(view returns (address)
0x88984da5550e521270cf34f824ebe7d4093cbb54
feeUtils(view returns (address)
0xd2cedbf8089d521f9573625c4fa27fdc48870907
getFeeUtils(view returns (address)
0xd2cedbf8089d521f9573625c4fa27fdc48870907
getVaultUtils(view returns (address)
0x2f4266fa695ca9891e93eccea18239d59ccc277c
gov(view returns (address)
0x3e26c1a39dc6c1ce7afe159a0d46ef3ca4b6a742
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
maxGasPrice(view returns (uint256)
0
maxLeverage(view returns (uint256)
1000000
minProfitTime(view returns (uint256)
10800
priceFeed(view returns (address)
0xda6e43c3b5fb0d3ba67f23ab17c7f76a277e1a9e
router(view returns (address)
0xb575cea2d54c08d9c25ac033b8c93bce2fb49495
totalTokenWeights(view returns (uint256)
26000
usdf(view returns (address)
0xfe4dfb5789f6fd2c2bc3c3b8d1a13025b55756b1
useSwapPricing(view returns (bool)
false
vaultUtils(view returns (address)
0x2f4266fa695ca9891e93eccea18239d59ccc277c
whitelistedTokenCount(view returns (uint256)
5
Read-only
adjustForDecimals(uint256 _amountaddress _tokenDivaddress _tokenMulview returns (uint256)
allWhitelistedTokens(uint256view returns (address)
approvedRouters(addressaddressview returns (bool)
bufferAmounts(addressview returns (uint256)
errors(uint256view returns (string)
feeReserves(addressview returns (uint256)
getDelta(address _indexTokenuint256 _sizeuint256 _averagePricebool _isLonguint256 _lastIncreasedTimeview returns (booluint256)
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)
getNextGlobalShortAveragePrice(address _indexTokenuint256 _nextPriceuint256 _sizeDeltaview returns (uint256)
getPosition(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongview returns (uint256uint256uint256uint256uint256uint256booluint256)
getPositionDelta(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongview returns (booluint256)
getPositionKey(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongpure returns (bytes32)
getPositionLeverage(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongview returns (uint256)
getRedemptionAmount(address _tokenuint256 _usdfAmountview returns (uint256)
getRedemptionCollateral(address _tokenview returns (uint256)
getRedemptionCollateralUsd(address _tokenview returns (uint256)
getTargetUsdfAmount(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)
maxGlobalShortSizes(addressview returns (uint256)
maxUsdfAmounts(addressview returns (uint256)
minProfitBasisPoints(addressview returns (uint256)
poolAmounts(addressview returns (uint256)
positions(bytes32view returns (uint256 sizeuint256 collateraluint256 averagePriceuint256 entryRolloverRateuint256 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)
usdfAmounts(addressview returns (uint256)
validateLiquidation(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongbool _raiseview returns (uint256uint256)
whitelistedTokens(addressview returns (bool)
State-modifying
addRouter(address _router
buyUSDF(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 _usdfaddress _priceFeed
liquidatePosition(address _accountaddress _collateralTokenaddress _indexTokenbool _isLongaddress _feeReceiver
removeRouter(address _router
sellUSDF(address _tokenaddress _receiverreturns (uint256)
setBufferAmount(address _tokenuint256 _amount
setError(uint256 _errorCodestring _error
setErrorController(address _errorController
setFeeUtils(address _feeUtils
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
setMinProfitTime(uint256 _minProfitTime
setPriceFeed(address _priceFeed
setTokenConfig(address _tokenuint256 _tokenDecimalsuint256 _tokenWeightuint256 _minProfitBpsuint256 _maxUsdfAmountbool _isStablebool _isShortable
setUsdfAmount(address _tokenuint256 _amount
setVaultUtils(address _vaultUtils
swap(address _tokenInaddress _tokenOutaddress _receiverreturns (uint256)
upgradeVault(address _newVaultaddress _tokenuint256 _amount
withdrawFees(address _tokenaddress _receiverreturns (uint256)
Events
BuyUSDF(address accountaddress tokenuint256 tokenAmountuint256 usdfAmountuint256 feeBasisPoints
ClosePosition(bytes32 keyuint256 sizeuint256 collateraluint256 averagePriceuint256 entryRolloverRateuint256 reserveAmountint256 realisedPnl
CollectPositionTradeFees(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
DecreaseUsdfAmount(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
IncreaseUsdfAmount(address tokenuint256 amount
LiquidatePosition(bytes32 keyaddress accountaddress collateralTokenaddress indexTokenbool isLonguint256 sizeuint256 collateraluint256 reserveAmountint256 realisedPnluint256 markPrice
SellUSDF(address accountaddress tokenuint256 usdfAmountuint256 tokenAmountuint256 feeBasisPoints
Swap(address accountaddress tokenInaddress tokenOutuint256 amountInuint256 amountOutuint256 amountOutAfterFeesuint256 feeBasisPoints
UpdatePnl(bytes32 keybool hasProfituint256 delta
UpdatePosition(bytes32 keyuint256 sizeuint256 collateraluint256 averagePriceuint256 entryRolloverRateuint256 reserveAmountint256 realisedPnluint256 markPrice
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.