GToken

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0xd7f2c73f at 20160727
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
37 additional variables

No balances found for "GToken"

No transactions found for "GToken"


Functions
Getter at block 22752535
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 precisionuint128 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 addrbytes signature)
(addr=0x0000000000000000000000000000000000000000, signature=0x)
gnsToken(view returns (address)
0x0000000000000000000000000000000000000000
 
gnsTokenToAssetsPrice(view returns (uint256 price)
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)
 
totalAssets(view returns (uint256)
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
 
withdrawEpochsTimelock(view returns (uint256)
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(