This contract is being backfilled. You may encounter incomplete storage history.

TransparentUpgradeableProxy

Verified contract

Proxy

Active on Base with 54 txns
Deployed by via 0xc25cb131 at 2529594
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 49 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 6 additional slots
16 additional variables
ERC-20
Value $2,051.92
ERC-20
Value $1,836.29
ERC-20
Value $1,445.5
ERC-20
Value $0.02
ERC-20
Value $0
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x3542db4c12f9720e658a829ff7b2a6d0ddb5fe112100a391a34fd87cc8e8a895
0x526ad03e59c25d76bd150a4ddc8392218638d0c87e21fbad47788b22b4d1831a
0xb85c7bd1383c3fd3b1344e391edb473d821198bcb81f8de7a609e9ae2534aa8f
0x26abb2b1ef6b2b3cafc741076dbcff1f9ba7982788feeb3ff427ea68610d23ea
0xd58f0d9a0c28ddcbb9edd9c6056963147a9198604aa20723238d23c18172b0be
0xd6dd810afce4f7ffd967be3d826c4375350ef4b631dbd00f2914a522b06b9680
0x76e0150ae7128405bd6003cef88dae058f9b14e0bc4e746b5c610f9c9b8f5f7f
0xc1efc94801bcad1dbdded7cfd98080a7f272d12f6547a4cbf57bc4340d16235d
0xe5ae1f5d4898b17a5349ad6c11b8653127f74da40ebaea311e31986a1bd94cf4
0x32b2a878f4288519f5c10285857128e3c4aec81d07614849abf90ee2ea7a417c

Functions
Getter at block 22029881
accrualInterval(view returns (uint256)
3600
addRemoveLiquidityFee(view returns (uint256)
20000000
controller(view returns (address)
0x0000000000000000000000000000000000000000
fee(view returns (uint256 positionFeeuint256 liquidationFeeuint256 baseSwapFeeuint256 taxBasisPointuint256 stableCoinBaseSwapFeeuint256 stableCoinTaxBasisPointuint256 daoFee)
(positionFee=10000000, liquidationFee=5000000000000000000000000000000, baseSwapFee=20000000, taxBasisPoint=20000000, stableCoinBaseSwapFee=10000000, stableCoinTaxBasisPoint=10000000, daoFee=3500000000)
feeDistributor(view returns (address)
0x7502c483fb55a16cc77d1bc915e7b1a65899fcb8
getAllTranchesLength(view returns (uint256)
3
interestRate(view returns (uint256)
1000000
maintenanceMargin(view returns (uint256)
100000000
maxLeverage(view returns (uint256)
55
oracle(view returns (address)
0x6182f962db5f5bb03d07fa1e7eb1e78adba36e3f
orderManager(view returns (address)
0x74ea06b1a254449bd4217705ffd2f666f1571278
owner(view returns (address)
0x07b9c6e3342244f76e242a30ff9cc2747e643d05
poolHook(view returns (address)
0xaec128e4ea39787e75d59f01a6b72da7c1ff6b0c
totalWeight(view returns (uint256)
100000
virtualPoolValue(view returns (uint256)
3851728775010257983748091242123364
Read-only
allAssets(uint256view returns (address)
allTranches(uint256view returns (address)
averageShortPrices(addressaddressview returns (uint256)
calcRemoveLiquidity(address _trancheaddress _tokenOutuint256 _lpAmountview returns (uint256 outAmountuint256 outAmountAfterFeeuint256 feeAmount)
calcSwapOutput(address _tokenInaddress _tokenOutuint256 _amountInview returns (uint256 amountOutuint256 feeAmount)
getPoolAsset(address _tokenview returns (struct AssetInfo)
getPoolValue(bool _maxview returns (uint256)
getTrancheValue(address _tranchebool _maxview returns (uint256 sum)
isAsset(addressview returns (bool)
isListed(addressview returns (bool)
isStableCoin(addressview returns (bool)
isTranche(addressview returns (bool)
maxGlobalLongSizeRatios(addressview returns (uint256)
maxGlobalShortSizes(addressview returns (uint256)
maxLiquidity(addressview returns (uint256)
poolTokens(addressview returns (uint256 feeReserveuint256 poolBalanceuint256 lastAccrualTimestampuint256 borrowIndexuint256 ___averageShortPrice)
positions(bytes32view returns (uint256 sizeuint256 collateralValueuint256 reserveAmountuint256 entryPriceuint256 borrowIndex)
riskFactor(addressaddressview returns (uint256)
swapExecutors(addressview returns (bool)
targetWeights(addressview returns (uint256)
totalRiskFactor(addressview returns (uint256)
trancheAssets(addressaddressview returns (uint256 poolAmountuint256 reservedAmountuint256 guaranteedValueuint256 totalShortSize)
tranchePositionReserves(addressbytes32view returns (uint256)
validateToken(address _indexTokenaddress _collateralTokenuint8 _sidebool _isIncreaseview returns (bool)
State-modifying
admin(returns (address admin_)
changeAdmin(address newAdmin
implementation(returns (address implementation_)
upgradeTo(address newImplementation
upgradeToAndCall(address newImplementationbytes datapayable 
addLiquidity(address _trancheaddress _tokenuint256 _amountInuint256 _minLpAmountaddress _to
addToken(address _tokenbool _isStableCoin
decreasePosition(address _owneraddress _indexTokenaddress _collateralTokenuint256 _collateralChangeduint256 _sizeChangeduint8 _sideaddress _receiver
increasePosition(address _owneraddress _indexTokenaddress _collateralTokenuint256 _sizeChangeduint8 _side
liquidatePosition(address _accountaddress _indexTokenaddress _collateralTokenuint8 _side
rebalanceAsset(address _fromTrancheaddress _fromTokenuint256 _fromAmountaddress _toTrancheaddress _toToken
refreshVirtualPoolValue(
removeLiquidity(address _trancheaddress _tokenOutuint256 _lpAmountuint256 _minOutaddress _to
renounceOwnership(
setDaoFee(uint256 _daoFee
setFeeDistributor(address _feeDistributor
setPoolHook(address _hook
setRiskFactor(address _tokenstruct PoolRiskConfig[] _config
setSwapExecutor(address _swapExecutorbool isExecutor
setTargetWeight(struct TokenWeight[] tokens
spotSwap(address _tokenInaddress _tokenOutuint256 _minOutaddress _tobytes extradata
swap(address _tokenInaddress _tokenOutuint256 _minOutaddress _tobytes extradata
transferOwnership(address newOwner
withdrawFee(address _tokenaddress _recipient
Events
AdminChanged(address previousAdminaddress newAdmin
BeaconUpgraded(address indexed beacon
Upgraded(address indexed implementation
AddRemoveLiquidityFeeSet(uint256 value
AssetRebalanced(
ClosePosition(bytes32 indexed keyuint256 sizeuint256 collateralValueuint256 entryPriceuint256 entryInterestRateuint256 reserveAmount
DaoFeeReduced(address indexed tokenuint256 amount
DaoFeeSet(uint256 value
DaoFeeWithdrawn(address indexed tokenaddress recipientuint256 amount
DecreasePosition(bytes32 indexed keyaddress accountaddress collateralTokenaddress indexTokenuint256 collateralChangeduint256 sizeChangeduint8 sideuint256 indexPricestruct SignedInt pnluint256 feeValue
FeeDistributorSet(address indexed feeDistributor
IncreasePosition(bytes32 indexed keyaddress accountaddress collateralTokenaddress indexTokenuint256 collateralValueuint256 sizeChangeduint8 sideuint256 indexPriceuint256 feeValue
Initialized(uint8 version
InterestAccrued(address indexed tokenuint256 borrowIndex
InterestRateSet(uint256 interestRateuint256 interval
LiquidatePosition(bytes32 indexed keyaddress accountaddress collateralTokenaddress indexTokenuint8 sideuint256 sizeuint256 collateralValueuint256 reserveAmountuint256 indexPricestruct SignedInt pnluint256 feeValue
LiquidityAdded(address indexed trancheaddress indexed senderaddress tokenuint256 amountuint256 lpAmountuint256 fee
LiquidityRemoved(address indexed trancheaddress indexed senderaddress tokenuint256 lpAmountuint256 amountOutuint256 fee
MaintenanceMarginChanged(uint256 ratio
MaxGlobalPositionSizeSet(address indexed tokenuint256 maxLongRatiosuint256 maxShortSize
MaxLeverageChanged(uint256 maxLeverage
MaxLiquiditySet(address tokenuint256 maxLiquidity
OracleChanged(address indexed oldOracleaddress indexed newOracle
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PnLDistributed(address indexed assetaddress indexed trancheuint256 amountbool hasProfit
PoolControllerChanged(address controller
PoolHookChanged(address indexed hook
PositionFeeSet(uint256 positionFeeuint256 liquidationFee
SetOrderManager(address indexed orderManager
Swap(address indexed senderaddress tokenInaddress tokenOutuint256 amountInuint256 amountOutuint256 fee
SwapFeeSet(uint256 baseSwapFeeuint256 taxBasisPointuint256 stableCoinBaseSwapFeeuint256 stableCoinTaxBasisPoint
TokenDelisted(address indexed token
TokenRiskFactorUpdated(address indexed token
TokenWeightSet(struct TokenWeight[] arg0
TokenWhitelisted(address indexed token
TrancheAdded(address indexed lpToken
UpdatePosition(bytes32 indexed keyuint256 sizeuint256 collateralValueuint256 entryPriceuint256 entryInterestRateuint256 reserveAmountuint256 indexPrice
Constructor
constructor(address _logicaddress admin_bytes _data
Fallback and receive
fallback(
receive(
Errors
AddLiquidityNotAllowed(address trancheaddress token
AssetNotListed(address token
CannotDistributeToTranches(address indexTokenaddress collateralTokenuint256 amountbool CannotDistributeToTranches
DuplicateToken(address token
FeeDistributorOnly(
InsufficientPoolAmount(address token
InvalidLeverage(uint256 sizeuint256 marginuint256 maxLeverage
InvalidPositionSize(
InvalidTokenPair(address indexaddress collateral
InvalidTranche(address tranche
MaxGlobalShortSizeExceeded(address tokenuint256 globalShortSize
MaxLiquidityReach(
NotApplicableForStableCoin(
OrderManagerOnly(
PositionNotExists(address owneraddress indexTokenaddress collateralTokenuint8 side
PositionNotLiquidated(bytes32 key
RequireAllTokens(
ReserveReduceTooMuch(address token
SameTokenSwap(address token
SlippageExceeded(
TooManyTokenAdded(uint256 numberuint256 max
UnknownToken(address token
UpdateCauseLiquidation(
ValueTooHigh(uint256 maxValue
ZeroAddress(
ZeroAmount(