GToken
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
8
Slot
XX
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
37 additional
variables
Balances ($0.00)
No balances found for "GToken"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "GToken"
ABI
ABI objects
Getter at block 22770051 gnsTokenToAssetsPrice() view returns (uint256 price) totalAssets() view returns (uint256) withdrawEpochsTimelock() view returns (uint256)
MIN_LOCK_DURATION() view returns (uint256)
0
accBlockWeightedMarketCap() view returns (uint256)
0
accBlockWeightedMarketCapLastStored() view returns (uint256)
0
accPnlPerToken() view returns (int256)
0
accPnlPerTokenUsed() view returns (int256)
0
accRewardsPerToken() view returns (uint256)
0
admin() view returns (address)
0x0000000000000000000000000000000000000000
asset() view returns (address)
0x0000000000000000000000000000000000000000
assetsToDeplete() view returns (uint256)
0
availableAssets() view returns (uint256)
0
collateralConfig() view returns (uint128 precision, uint128 precisionDelta)
(precision=0, precisionDelta=0)
collateralizationP() view returns (uint256)
100000000000000000000
currentEpoch() view returns (uint256)
0
currentEpochPositiveOpenPnl() view returns (uint256)
0
currentEpochStart() view returns (uint256)
0
currentMaxSupply() view returns (uint256)
0
dailyAccPnlDelta() view returns (int256)
0
dailyMintedGns() view returns (uint256)
0
decimals() view returns (uint8)
0
gnsPriceProvider() view returns (address addr, bytes signature)
(addr=0x0000000000000000000000000000000000000000, signature=0x)
gnsToken() view returns (address)
0x0000000000000000000000000000000000000000
lastDailyAccPnlDeltaReset() view returns (uint256)
0
lastDailyMintedGnsReset() view returns (uint256)
0
lastMaxSupplyUpdate() view returns (uint256)
0
lockedDepositNft() view returns (address)
0x0000000000000000000000000000000000000000
lockedDepositsCount() view returns (uint256)
0
lossesBurnP() view returns (uint256)
0
manager() view returns (address)
0x0000000000000000000000000000000000000000
marketCap() view returns (uint256)
0
maxAccOpenPnlDelta() view returns (uint256)
0
maxAccPnlPerToken() view returns (uint256)
1000000000000000000
maxDailyAccPnlDelta() view returns (uint256)
0
maxDiscountP() view returns (uint256)
0
maxDiscountThresholdP() view returns (uint256)
0
maxGnsSupplyMintDailyP() view returns (uint256)
0
maxSupplyIncreaseDailyP() view returns (uint256)
0
name() view returns (string)
openTradesPnlFeed() view returns (address)
0x0000000000000000000000000000000000000000
owner() view returns (address)
0x0000000000000000000000000000000000000000
pnlHandler() view returns (address)
0x0000000000000000000000000000000000000000
shareToAssetsPrice() view returns (uint256)
0
symbol() view returns (string)
totalClosedPnl() view returns (int256)
0
totalDepleted() view returns (uint256)
0
totalDepletedGns() view returns (uint256)
0
totalDeposited() view returns (uint256)
0
totalDiscounts() view returns (uint256)
0
totalLiability() view returns (int256)
0
totalLockedDiscounts() view returns (uint256)
0
totalRefilled() view returns (uint256)
0
totalRefilledGns() view returns (uint256)
0
totalRewards() view returns (uint256)
0
totalSupply() view returns (uint256)
0
tvl() view returns (uint256)
0
Read-only
allowance(address owner, address spender) view returns (uint256)
balanceOf(address account) view returns (uint256)
convertToAssets(uint256 shares) view returns (uint256)
convertToShares(uint256 assets) view returns (uint256)
getLockedDeposit(uint256 depositId) view returns (struct IGTokenLockedDeposit)
lockDiscountP(uint256 collatP, uint256 lockDuration) view returns (uint256)
lockedDeposits(uint256) view returns (address owner, uint256 shares, uint256 assetsDeposited, uint256 assetsDiscount, uint256 atTimestamp, uint256 lockDuration)
maxDeposit(address owner) view returns (uint256)
maxMint(address) view returns (uint256)
maxRedeem(address owner) view returns (uint256)
maxWithdraw(address owner) view returns (uint256)
previewDeposit(uint256 assets) view returns (uint256)
previewMint(uint256 shares) view returns (uint256)
previewRedeem(uint256 shares) view returns (uint256)
previewWithdraw(uint256 assets) view returns (uint256)
totalSharesBeingWithdrawn(address owner) view returns (uint256 shares)
withdrawLockThresholdsP(uint256) view returns (uint256)
withdrawRequests(address, uint256) view returns (uint256)
State-modifying
Events approve(address spender, uint256 amount) returns (bool)
cancelWithdrawRequest(uint256 shares, address owner, uint256 unlockEpoch)
decreaseAllowance(address spender, uint256 subtractedValue) returns (bool)
deplete(uint256 assets)
deposit(uint256 assets, address receiver) returns (uint256)
depositWithDiscountAndLock(uint256 assets, uint256 lockDuration, address receiver) returns (uint256)
distributeReward(uint256 assets)
increaseAllowance(address spender, uint256 addedValue) returns (bool)
initialize(struct IGTokenMeta _meta, struct IGTokenContractAddresses _contractAddresses, uint256 _MIN_LOCK_DURATION, uint256 _maxAccOpenPnlDelta, uint256 _maxDailyAccPnlDelta, uint256[2] _withdrawLockThresholdsP, uint256 _maxSupplyIncreaseDailyP, uint256 _lossesBurnP, uint256 _maxGnsSupplyMintDailyP, uint256 _maxDiscountP, uint256 _maxDiscountThresholdP)
initializeV3()
makeWithdrawRequest(uint256 shares, address owner)
mint(uint256 shares, address receiver) returns (uint256)
mintWithDiscountAndLock(uint256 shares, uint256 lockDuration, address receiver) returns (uint256)
receiveAssets(uint256 assets, address user)
redeem(uint256 shares, address receiver, address owner) returns (uint256)
refill(uint256 assets)
renounceOwnership()
sendAssets(uint256 assets, address receiver)
transfer(address to, uint256 amount) returns (bool)
transferFrom(address from, address to, uint256 amount) returns (bool)
transferOwnership(address newOwner)
tryNewOpenPnlRequestOrEpoch()
tryResetDailyAccPnlDelta()
tryUpdateCurrentMaxSupply()
unlockDeposit(uint256 depositId, address receiver)
updateAccPnlPerTokenUsed(uint256 prevPositiveOpenPnl, uint256 newPositiveOpenPnl) returns (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 assets, address receiver, address owner) returns (uint256)
AccPnlPerTokenUsedUpdated(address indexed sender, uint256 indexed newEpoch, uint256 prevPositiveOpenPnl, uint256 newPositiveOpenPnl, uint256 newEpochPositiveOpenPnl, int256 newAccPnlPerTokenUsed)
AdminUpdated(address newValue)
Approval(address indexed owner, address indexed spender, uint256 value)
AssetsReceived(address indexed sender, address indexed user, uint256 assets, uint256 assetsLessDeplete)
AssetsSent(address indexed sender, address indexed receiver, uint256 assets)
CurrentMaxSupplyUpdated(uint256 newValue)
DailyAccPnlDeltaReset()
Delegated(address indexed asset, address indexed delegatee, bool success)
Depleted(address indexed sender, uint256 assets, uint256 amountGns)
Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares)
DepositLocked(address indexed sender, address indexed owner, uint256 depositId, struct IGTokenLockedDeposit d)
DepositUnlocked(address indexed sender, address indexed receiver, address indexed owner, uint256 depositId, struct 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 previousOwner, address indexed newOwner)
PnlHandlerUpdated(address newValue)
Refilled(address indexed sender, uint256 assets, uint256 amountGns)
RewardDistributed(address indexed sender, uint256 assets)
ShareToAssetsPriceUpdated(uint256 newValue)
Transfer(address indexed from, address indexed to, uint256 value)
Withdraw(address indexed sender, address indexed receiver, address indexed owner, uint256 assets, uint256 shares)
WithdrawCanceled(address indexed sender, address indexed owner, uint256 shares, uint256 currEpoch, uint256 indexed unlockEpoch)
WithdrawLockThresholdsPUpdated(uint256[2] newValue)
WithdrawRequested(address indexed sender, address indexed owner, uint256 shares, uint256 currEpoch, uint256 indexed unlockEpoch)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
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()