GToken

GToken vault contract, direct counterparty to trades happening on gTrade

gnsToken

address gnsToken

lockedDepositNft

contract IGTokenLockedDepositNft lockedDepositNft

manager

address manager

admin

address admin

pnlHandler

address pnlHandler

openTradesPnlFeed

gnsPriceProvider

PRECISION_18

PRECISION_10

MIN_DAILY_ACC_PNL_DELTA

MAX_SUPPLY_INCREASE_DAILY_P

MAX_LOSSES_BURN_P

MAX_GNS_SUPPLY_MINT_DAILY_P

MAX_DISCOUNT_P

MIN_LOCK_DURATION

MAX_LOCK_DURATION

WITHDRAW_EPOCHS_LOCKS

maxAccOpenPnlDelta

maxDailyAccPnlDelta

withdrawLockThresholdsP

maxSupplyIncreaseDailyP

lossesBurnP

maxGnsSupplyMintDailyP

maxDiscountP

maxDiscountThresholdP

shareToAssetsPrice

accPnlPerTokenUsed

accPnlPerToken

accRewardsPerToken

dailyAccPnlDelta

lastDailyAccPnlDeltaReset

currentEpoch

currentEpochStart

currentEpochPositiveOpenPnl

currentMaxSupply

lastMaxSupplyUpdate

withdrawRequests

lockedDepositsCount

lockedDeposits

assetsToDeplete

dailyMintedGns

lastDailyMintedGnsReset

totalDeposited

totalClosedPnl

totalRewards

totalLiability

totalLockedDiscounts

totalDiscounts

totalDepleted

totalDepletedGns

totalRefilled

totalRefilledGns

accBlockWeightedMarketCap

accBlockWeightedMarketCapLastStored

collateralConfig

initialize

initializeV3

onlyManager

checks

validDiscount

transferOwnership

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

updateManager

updateAdmin

updatePnlHandler

updateGnsPriceProvider

updateOpenTradesPnlFeed

updateDelegatee

updateMaxAccOpenPnlDelta

updateMaxDailyAccPnlDelta

updateWithdrawLockThresholdsP

updateMaxSupplyIncreaseDailyP

updateLossesBurnP

updateMaxGnsSupplyMintDailyP

updateMaxDiscountP

updateMaxDiscountThresholdP

maxAccPnlPerToken

collateralizationP

gnsTokenToAssetsPrice

withdrawEpochsTimelock

lockDiscountP

totalSharesBeingWithdrawn

tryUpdateCurrentMaxSupply

tryResetDailyAccPnlDelta

tryNewOpenPnlRequestOrEpoch

transfer

transferFrom

decimals

_convertToShares

Internal conversion function (from assets to shares) with support for rounding direction.

_convertToAssets

Internal conversion function (from shares to assets) with support for rounding direction.

maxMint

See {IERC4626-maxMint}.

maxDeposit

maxRedeem

See {IERC4626-maxRedeem}.

maxWithdraw

See {IERC4626-maxWithdraw}.

deposit

See {IERC4626-deposit}.

mint

_See {IERC4626-mint}.

As opposed to {deposit}, minting is allowed even if the vault is in a state where the price of a share is zero. In this case, the shares will be minted without requiring any assets to be deposited._

withdraw

See {IERC4626-withdraw}.

redeem

See {IERC4626-redeem}.

makeWithdrawRequest

cancelWithdrawRequest

depositWithDiscountAndLock

mintWithDiscountAndLock

unlockDeposit

distributeReward

sendAssets

receiveAssets

deplete

refill

updateAccPnlPerTokenUsed

getLockedDeposit

tvl

availableAssets

marketCap

Was this helpful?