Bytecode-generated storage layout

We've generated a storage layout (with no variable labels) from this contract's bytecode. We've also started a backfill to track the inferred variables.

Gains Network USDC

Verified contract

Proxy

Active on Base with 4,195 txns
Deployed by via 0xd44da56a at 20161011
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 44 additional slots
-
variable spans 48 additional slots
-
variable spans 48 additional slots
-
variable spans 1 additional slot
39 additional variables
ERC-20
Value $3,920,359.46
ERC-20
Value $231,074.37
ERC-20
Value $0.1
ERC-20
--
0x269e52d5d07d1f8f429a10fd8072a646393d08ef8dbdf197ceeb441fa0d55823
0x5a4fa7e0c36039a48963e482fde2c591dd287ed621866feac655dee1547948cf
0x55b62b021d04f451fda757be2be8fcebe29fac8607d56f40d5d2213e1830bb78
0x20f4ee773162585aaeb71c6ddc7bee4e6f4846e773efafe5fe700da123329ede
0x32362ae745a198e21bc24d7848ad4cc0a233ac687faeb0ccbcbb6d57f1d5d88e
0x1e0b79129e77f96b9ee29b8e51657615cf73b9d12a484481788551196b07cf0d
0x396c2efcd183ab21935c2f715073071523216c4ec2e6419b94130bc00f0e5d7c
0x7bd159b588e6ba637d0c46fd90a81e93b93a06d848f2e5cbad7836c03759498c
0x374f90e83b2704404143bc1d601c34d0263b5b2f732c7d6a5831db366e0fd135
0x40291420e74cae168eb41d8d031789fdd4e67794110e990ed042f7e40d71c914

Functions
Getter at block 22752535
MIN_LOCK_DURATION(view returns (uint256)
1209600
accBlockWeightedMarketCap(view returns (uint256)
0
accBlockWeightedMarketCapLastStored(view returns (uint256)
0
accPnlPerToken(view returns (int256)
-235145544596115174
accPnlPerTokenUsed(view returns (int256)
-205883733712749284
accRewardsPerToken(view returns (uint256)
19952968514474756
admin(view returns (address)
0xe8997c502fcd0729b462fca19a50cf0daea0cab5
asset(view returns (address)
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
assetsToDeplete(view returns (uint256)
0
availableAssets(view returns (uint256)
3825443823754
collateralConfig(view returns (uint128 precisionuint128 precisionDelta)
(precision=1000000, precisionDelta=1000000000000)
collateralizationP(view returns (uint256)
120185610520121493830
currentEpoch(view returns (uint256)
20
currentEpochPositiveOpenPnl(view returns (uint256)
0
currentEpochStart(view returns (uint256)
1732070009
currentMaxSupply(view returns (uint256)
3182944087826
dailyAccPnlDelta(view returns (int256)
776823581807400
dailyMintedGns(view returns (uint256)
0
decimals(view returns (uint8)
6
gnsPriceProvider(view returns (address addrbytes signature)
(addr=0x6cd5ac19a07518a8092eeffda4f1174c72704eeb, signature=0x1de109d2)
gnsToken(view returns (address)
0xfb1aaba03c31ea98a3eec7591808acb1947ee7ac
 
gnsTokenToAssetsPrice(view returns (uint256 price)
lastDailyAccPnlDeltaReset(view returns (uint256)
1732232501
lastDailyMintedGnsReset(view returns (uint256)
0
lastMaxSupplyUpdate(view returns (uint256)
1732232501
lockedDepositNft(view returns (address)
0x7d0131aceefd2acc919d7b2ac32e8e6c81a05ceb
lockedDepositsCount(view returns (uint256)
16
lossesBurnP(view returns (uint256)
0
manager(view returns (address)
0x03908e9aeba0a23c1c476f946b99b6e9ea0b8f08
marketCap(view returns (uint256)
3182946616653
maxAccOpenPnlDelta(view returns (uint256)
250000000000000000
maxAccPnlPerToken(view returns (uint256)
1019952968514474756
maxDailyAccPnlDelta(view returns (uint256)
500000000000000000
maxDiscountP(view returns (uint256)
5000000000000000000
maxDiscountThresholdP(view returns (uint256)
150000000000000000000
maxGnsSupplyMintDailyP(view returns (uint256)
50000000000000000
maxSupplyIncreaseDailyP(view returns (uint256)
2000000000000000000
name(view returns (string)
Gains Network USDC
openTradesPnlFeed(view returns (address)
0xefa1c2753dad877bb6531bba9d9c589b5433be37
owner(view returns (address)
0x3a00b1fa6cb7d07043fc2b2066066735f9419e7a
pnlHandler(view returns (address)
0x6cd5ac19a07518a8092eeffda4f1174c72704eeb
shareToAssetsPrice(view returns (uint256)
1019952968514474756
symbol(view returns (string)
gUSDC
totalAssets(view returns (uint256)
3916443016036
totalClosedPnl(view returns (int256)
-733856300570
totalDepleted(view returns (uint256)
0
totalDepletedGns(view returns (uint256)
0
totalDeposited(view returns (uint256)
3182586715466
totalDiscounts(view returns (uint256)
359901517
totalLiability(view returns (int256)
-733813948974
totalLockedDiscounts(view returns (uint256)
317549921
totalRefilled(view returns (uint256)
0
totalRefilledGns(view returns (uint256)
0
totalRewards(view returns (uint256)
44821030650
totalSupply(view returns (uint256)
3120679791039
tvl(view returns (uint256)
3182946616653
withdrawEpochsTimelock(view returns (uint256)
1
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
convertToAssets(uint256 sharesview returns (uint256)
convertToShares(uint256 assetsview returns (uint256)
getLockedDeposit(uint256 depositIdview returns (struct IGTokenLockedDeposit)
lockDiscountP(uint256 collatPuint256 lockDurationview returns (uint256)
lockedDeposits(uint256view returns (address owneruint256 sharesuint256 assetsDepositeduint256 assetsDiscountuint256 atTimestampuint256 lockDuration)
maxDeposit(address ownerview returns (uint256)
maxMint(addressview returns (uint256)
maxRedeem(address ownerview returns (uint256)
maxWithdraw(address ownerview returns (uint256)
previewDeposit(uint256 assetsview returns (uint256)
previewMint(uint256 sharesview returns (uint256)
previewRedeem(uint256 sharesview returns (uint256)
previewWithdraw(uint256 assetsview returns (uint256)
totalSharesBeingWithdrawn(address ownerview returns (uint256 shares)
withdrawLockThresholdsP(uint256view returns (uint256)
withdrawRequests(addressuint256view returns (uint256)
State-modifying
approve(address spenderuint256 amountreturns (bool)
cancelWithdrawRequest(uint256 sharesaddress owneruint256 unlockEpoch
decreaseAllowance(address spenderuint256 subtractedValuereturns (bool)
deplete(uint256 assets
deposit(uint256 assetsaddress receiverreturns (uint256)
depositWithDiscountAndLock(uint256 assetsuint256 lockDurationaddress receiverreturns (uint256)
distributeReward(uint256 assets
increaseAllowance(address spenderuint256 addedValuereturns (bool)
initialize(struct IGTokenMeta _metastruct IGTokenContractAddresses _contractAddressesuint256 _MIN_LOCK_DURATIONuint256 _maxAccOpenPnlDeltauint256 _maxDailyAccPnlDeltauint256[2] _withdrawLockThresholdsPuint256 _maxSupplyIncreaseDailyPuint256 _lossesBurnPuint256 _maxGnsSupplyMintDailyPuint256 _maxDiscountPuint256 _maxDiscountThresholdP
initializeV3(
makeWithdrawRequest(uint256 sharesaddress owner
mint(uint256 sharesaddress receiverreturns (uint256)
mintWithDiscountAndLock(uint256 sharesuint256 lockDurationaddress receiverreturns (uint256)
receiveAssets(uint256 assetsaddress user
redeem(uint256 sharesaddress receiveraddress ownerreturns (uint256)
refill(uint256 assets
renounceOwnership(
sendAssets(uint256 assetsaddress receiver
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
transferOwnership(address newOwner
tryNewOpenPnlRequestOrEpoch(
tryResetDailyAccPnlDelta(
tryUpdateCurrentMaxSupply(
unlockDeposit(uint256 depositIdaddress receiver
updateAccPnlPerTokenUsed(uint256 prevPositiveOpenPnluint256 newPositiveOpenPnlreturns (uint256)
updateAdmin(address newValue
updateDelegatee(address _delegatee
updateGnsPriceProvider(struct IGTokenGnsPriceProvider newValue
updateLossesBurnP(uint256 newValue
updateManager(address newValue
updateMaxAccOpenPnlDelta(uint256 newValue
updateMaxDailyAccPnlDelta(uint256 newValue
updateMaxDiscountP(uint256 newValue
updateMaxDiscountThresholdP(uint256 newValue
updateMaxGnsSupplyMintDailyP(uint256 newValue
updateMaxSupplyIncreaseDailyP(uint256 newValue
updateOpenTradesPnlFeed(address newValue
updatePnlHandler(address newValue
updateWithdrawLockThresholdsP(uint256[2] newValue
withdraw(uint256 assetsaddress receiveraddress ownerreturns (uint256)
Events
AccPnlPerTokenUsedUpdated(address indexed senderuint256 indexed newEpochuint256 prevPositiveOpenPnluint256 newPositiveOpenPnluint256 newEpochPositiveOpenPnlint256 newAccPnlPerTokenUsed
AdminUpdated(address newValue
Approval(address indexed owneraddress indexed spenderuint256 value
AssetsReceived(address indexed senderaddress indexed useruint256 assetsuint256 assetsLessDeplete
AssetsSent(address indexed senderaddress indexed receiveruint256 assets
CurrentMaxSupplyUpdated(uint256 newValue
DailyAccPnlDeltaReset(
Delegated(address indexed assetaddress indexed delegateebool success
Depleted(address indexed senderuint256 assetsuint256 amountGns
Deposit(address indexed senderaddress indexed owneruint256 assetsuint256 shares
DepositLocked(address indexed senderaddress indexed owneruint256 depositIdstruct IGTokenLockedDeposit d
DepositUnlocked(address indexed senderaddress indexed receiveraddress indexed owneruint256 depositIdstruct IGTokenLockedDeposit d
GnsPriceProviderUpdated(struct IGTokenGnsPriceProvider newValue
Initialized(uint8 version
LossesBurnPUpdated(uint256 newValue
ManagerUpdated(address newValue
MaxAccOpenPnlDeltaUpdated(uint256 newValue
MaxDailyAccPnlDeltaUpdated(uint256 newValue
MaxDiscountPUpdated(uint256 newValue
MaxDiscountThresholdPUpdated(uint256 newValue
MaxGnsSupplyMintDailyPUpdated(uint256 newValue
MaxSupplyIncreaseDailyPUpdated(uint256 newValue
OpenTradesPnlFeedCallFailed(
OpenTradesPnlFeedUpdated(address newValue
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PnlHandlerUpdated(address newValue
Refilled(address indexed senderuint256 assetsuint256 amountGns
RewardDistributed(address indexed senderuint256 assets
ShareToAssetsPriceUpdated(uint256 newValue
Transfer(address indexed fromaddress indexed touint256 value
Withdraw(address indexed senderaddress indexed receiveraddress indexed owneruint256 assetsuint256 shares
WithdrawCanceled(address indexed senderaddress indexed owneruint256 sharesuint256 currEpochuint256 indexed unlockEpoch
WithdrawLockThresholdsPUpdated(uint256[2] newValue
WithdrawRequested(address indexed senderaddress indexed owneruint256 sharesuint256 currEpochuint256 indexed unlockEpoch
Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
AboveInflationLimit(
AboveMax(
AddressZero(
BelowMin(
BytesZero(
ERC4626ExceededMaxDeposit(
ERC4626ExceededMaxMint(
ERC4626ExceededMaxRedeem(
ERC4626ExceededMaxWithdraw(
EndOfEpoch(
GnsPriceCallFailed(
GnsTokenPriceZero(
MaxDailyPnl(
NoActiveDiscount(
NoDiscount(
NotAllowed(
NotEnoughAssets(
NotUnderCollateralized(
NotUnlocked(
OnlyManager(
OnlyPnlFeed(
OnlyTradingPnlHandler(
OwnableInvalidOwner(address owner
PendingWithdrawal(
PriceZero(
ValueZero(
WrongValue(
WrongValues(