VaultV2

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VaultV2ABI = VaultV2MetaData.ABI

VaultV2ABI is the input ABI used to generate the binding from. Deprecated: Use VaultV2MetaData.ABI instead.

View Source
var VaultV2MetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"BASIS_POINTS_DIVISOR\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"FUNDING_RATE_PRECISION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_FEE_BASIS_POINTS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_FUNDING_RATE_FACTOR\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MAX_LIQUIDATION_FEE_USD\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MIN_FUNDING_RATE_INTERVAL\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"MIN_LEVERAGE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"PRICE_PRECISION\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"USDG_DECIMALS\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"addRouter\",\"inputs\":[{\"name\":\"_router\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"adjustForDecimals\",\"inputs\":[{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_tokenDiv\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenMul\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"allWhitelistedTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"allWhitelistedTokensLength\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"approvedRouters\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"bufferAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"buyUSDG\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"clearTokenConfig\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"cumulativeFundingRates\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"decreasePosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"directPoolDeposit\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"errorController\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"errors\",\"inputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"feeReserves\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"fundingInterval\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"fundingRateFactor\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getDelta\",\"inputs\":[{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_size\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_averagePrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_lastIncreasedTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getEntryFundingRate\",\"inputs\":[{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFeeBasisPoints\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdgDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_feeBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_taxBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_increment\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getFundingFee\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_size\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_entryFundingRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getGlobalShortDelta\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMaxPrice\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMinPrice\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNextAveragePrice\",\"inputs\":[{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_size\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_averagePrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_nextPrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_lastIncreasedTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNextFundingRate\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getNextGlobalShortAveragePrice\",\"inputs\":[{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_nextPrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPositionDelta\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPositionFee\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPositionKey\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"getPositionLeverage\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRedemptionAmount\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdgAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRedemptionCollateral\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getRedemptionCollateralUsd\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getTargetUsdgAmount\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getUtilisation\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"globalShortAveragePrices\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"globalShortSizes\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"gov\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"guaranteedUsd\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"hasDynamicFees\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"inManagerMode\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"inPrivateLiquidationMode\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"includeAmmPrice\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"increasePosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_sizeDelta\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"initialize\",\"inputs\":[{\"name\":\"_router\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdg\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_priceFeed\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_liquidationFeeUsd\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_fundingRateFactor\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_stableFundingRateFactor\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"isInitialized\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isLeverageEnabled\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isLiquidator\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isManager\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"isSwapEnabled\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"lastFundingTimes\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"liquidatePosition\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_feeReceiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"liquidationFeeUsd\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"marginFeeBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maxGasPrice\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maxGlobalShortSizes\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maxLeverage\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"maxUsdgAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"minProfitBasisPoints\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"minProfitTime\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"mintBurnFeeBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"poolAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"positions\",\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"size\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"collateral\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"averagePrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"entryFundingRate\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"reserveAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"realisedPnl\",\"type\":\"int256\",\"internalType\":\"int256\"},{\"name\":\"lastIncreasedTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"priceFeed\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"removeRouter\",\"inputs\":[{\"name\":\"_router\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"reservedAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"router\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"sellUSDG\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setBufferAmount\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setError\",\"inputs\":[{\"name\":\"_errorCode\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_error\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setErrorController\",\"inputs\":[{\"name\":\"_errorController\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setFees\",\"inputs\":[{\"name\":\"_taxBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_stableTaxBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_mintBurnFeeBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_swapFeeBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_stableSwapFeeBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_marginFeeBasisPoints\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_liquidationFeeUsd\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minProfitTime\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_hasDynamicFees\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setFundingRate\",\"inputs\":[{\"name\":\"_fundingInterval\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_fundingRateFactor\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_stableFundingRateFactor\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setGov\",\"inputs\":[{\"name\":\"_gov\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setInManagerMode\",\"inputs\":[{\"name\":\"_inManagerMode\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setInPrivateLiquidationMode\",\"inputs\":[{\"name\":\"_inPrivateLiquidationMode\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setIsLeverageEnabled\",\"inputs\":[{\"name\":\"_isLeverageEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setIsSwapEnabled\",\"inputs\":[{\"name\":\"_isSwapEnabled\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setLiquidator\",\"inputs\":[{\"name\":\"_liquidator\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isActive\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setManager\",\"inputs\":[{\"name\":\"_manager\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isManager\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setMaxGasPrice\",\"inputs\":[{\"name\":\"_maxGasPrice\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setMaxGlobalShortSize\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setMaxLeverage\",\"inputs\":[{\"name\":\"_maxLeverage\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setPriceFeed\",\"inputs\":[{\"name\":\"_priceFeed\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setTokenConfig\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenDecimals\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_tokenWeight\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_minProfitBps\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_maxUsdgAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_isStable\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_isShortable\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setUsdgAmount\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setVaultUtils\",\"inputs\":[{\"name\":\"_vaultUtils\",\"type\":\"address\",\"internalType\":\"contractIVaultUtils\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"shortableTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stableFundingRateFactor\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stableSwapFeeBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stableTaxBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"stableTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"swap\",\"inputs\":[{\"name\":\"_tokenIn\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenOut\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"swapFeeBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"taxBasisPoints\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tokenBalances\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tokenDecimals\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tokenToUsdMin\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_tokenAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"tokenWeights\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"totalTokenWeights\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"updateCumulativeFundingRate\",\"inputs\":[{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"upgradeVault\",\"inputs\":[{\"name\":\"_newVault\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"usdToToken\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"_price\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"usdToTokenMax\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"usdToTokenMin\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_usdAmount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"usdg\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"usdgAmounts\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"useSwapPricing\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"validateLiquidation\",\"inputs\":[{\"name\":\"_account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_collateralToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_indexToken\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_isLong\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"_raise\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"vaultUtils\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"contractIVaultUtils\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"whitelistedTokenCount\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"whitelistedTokens\",\"inputs\":[{\"name\":\"\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"withdrawFees\",\"inputs\":[{\"name\":\"_token\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"_receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"BuyUSDG\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"tokenAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"usdgAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"feeBasisPoints\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"ClosePosition\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"size\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"collateral\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"averagePrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"entryFundingRate\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"reserveAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"realisedPnl\",\"type\":\"int256\",\"indexed\":false,\"internalType\":\"int256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CollectMarginFees\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"feeUsd\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"feeTokens\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"CollectSwapFees\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"feeUsd\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"feeTokens\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DecreaseGuaranteedUsd\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DecreasePoolAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DecreasePosition\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"collateralToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"indexToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"collateralDelta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"sizeDelta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"isLong\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"},{\"name\":\"price\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"fee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DecreaseReservedAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DecreaseUsdgAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"DirectPoolDeposit\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreaseGuaranteedUsd\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreasePoolAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreasePosition\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"collateralToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"indexToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"collateralDelta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"sizeDelta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"isLong\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"},{\"name\":\"price\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"fee\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreaseReservedAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"IncreaseUsdgAmount\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"LiquidatePosition\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"collateralToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"indexToken\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"isLong\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"},{\"name\":\"size\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"collateral\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"reserveAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"realisedPnl\",\"type\":\"int256\",\"indexed\":false,\"internalType\":\"int256\"},{\"name\":\"markPrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"SellUSDG\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"usdgAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"tokenAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"feeBasisPoints\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"Swap\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"tokenIn\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"tokenOut\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"amountIn\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"amountOut\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"amountOutAfterFees\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"feeBasisPoints\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UpdateFundingRate\",\"inputs\":[{\"name\":\"token\",\"type\":\"address\",\"indexed\":false,\"internalType\":\"address\"},{\"name\":\"fundingRate\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UpdatePnl\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"hasProfit\",\"type\":\"bool\",\"indexed\":false,\"internalType\":\"bool\"},{\"name\":\"delta\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"UpdatePosition\",\"inputs\":[{\"name\":\"key\",\"type\":\"bytes32\",\"indexed\":false,\"internalType\":\"bytes32\"},{\"name\":\"size\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"collateral\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"averagePrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"entryFundingRate\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"reserveAmount\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"},{\"name\":\"realisedPnl\",\"type\":\"int256\",\"indexed\":false,\"internalType\":\"int256\"},{\"name\":\"markPrice\",\"type\":\"uint256\",\"indexed\":false,\"internalType\":\"uint256\"}],\"anonymous\":false}]",
}

VaultV2MetaData contains all meta data concerning the VaultV2 contract.

Functions

This section is empty.

Types

type VaultV2

type VaultV2 struct {
	VaultV2Caller     // Read-only binding to the contract
	VaultV2Transactor // Write-only binding to the contract
	VaultV2Filterer   // Log filterer for contract events
}

VaultV2 is an auto generated Go binding around an Ethereum contract.

func NewVaultV2

func NewVaultV2(address common.Address, backend bind.ContractBackend) (*VaultV2, error)

NewVaultV2 creates a new instance of VaultV2, bound to a specific deployed contract.

type VaultV2BuyUSDG

type VaultV2BuyUSDG struct {
	Account        common.Address
	Token          common.Address
	TokenAmount    *big.Int
	UsdgAmount     *big.Int
	FeeBasisPoints *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

VaultV2BuyUSDG represents a BuyUSDG event raised by the VaultV2 contract.

type VaultV2BuyUSDGIterator

type VaultV2BuyUSDGIterator struct {
	Event *VaultV2BuyUSDG // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2BuyUSDGIterator is returned from FilterBuyUSDG and is used to iterate over the raw logs and unpacked data for BuyUSDG events raised by the VaultV2 contract.

func (*VaultV2BuyUSDGIterator) Close

func (it *VaultV2BuyUSDGIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2BuyUSDGIterator) Error

func (it *VaultV2BuyUSDGIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2BuyUSDGIterator) Next

func (it *VaultV2BuyUSDGIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2Caller

type VaultV2Caller struct {
	// contains filtered or unexported fields
}

VaultV2Caller is an auto generated read-only Go binding around an Ethereum contract.

func NewVaultV2Caller

func NewVaultV2Caller(address common.Address, caller bind.ContractCaller) (*VaultV2Caller, error)

NewVaultV2Caller creates a new read-only instance of VaultV2, bound to a specific deployed contract.

func (*VaultV2Caller) AdjustForDecimals

func (_VaultV2 *VaultV2Caller) AdjustForDecimals(opts *bind.CallOpts, _amount *big.Int, _tokenDiv common.Address, _tokenMul common.Address) (*big.Int, error)

AdjustForDecimals is a free data retrieval call binding the contract method 0x42152873.

Solidity: function adjustForDecimals(uint256 _amount, address _tokenDiv, address _tokenMul) view returns(uint256)

func (*VaultV2Caller) AllWhitelistedTokens

func (_VaultV2 *VaultV2Caller) AllWhitelistedTokens(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

AllWhitelistedTokens is a free data retrieval call binding the contract method 0xe468baf0.

Solidity: function allWhitelistedTokens(uint256 ) view returns(address)

func (*VaultV2Caller) AllWhitelistedTokensLength

func (_VaultV2 *VaultV2Caller) AllWhitelistedTokensLength(opts *bind.CallOpts) (*big.Int, error)

AllWhitelistedTokensLength is a free data retrieval call binding the contract method 0x0842b076.

Solidity: function allWhitelistedTokensLength() view returns(uint256)

func (*VaultV2Caller) ApprovedRouters

func (_VaultV2 *VaultV2Caller) ApprovedRouters(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (bool, error)

ApprovedRouters is a free data retrieval call binding the contract method 0x60922199.

Solidity: function approvedRouters(address , address ) view returns(bool)

func (*VaultV2Caller) BASISPOINTSDIVISOR

func (_VaultV2 *VaultV2Caller) BASISPOINTSDIVISOR(opts *bind.CallOpts) (*big.Int, error)

BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.

Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)

func (*VaultV2Caller) BufferAmounts

func (_VaultV2 *VaultV2Caller) BufferAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

BufferAmounts is a free data retrieval call binding the contract method 0x4a993ee9.

Solidity: function bufferAmounts(address ) view returns(uint256)

func (*VaultV2Caller) CumulativeFundingRates

func (_VaultV2 *VaultV2Caller) CumulativeFundingRates(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

CumulativeFundingRates is a free data retrieval call binding the contract method 0xc65bc7b1.

Solidity: function cumulativeFundingRates(address ) view returns(uint256)

func (*VaultV2Caller) ErrorController

func (_VaultV2 *VaultV2Caller) ErrorController(opts *bind.CallOpts) (common.Address, error)

ErrorController is a free data retrieval call binding the contract method 0x48f35cbb.

Solidity: function errorController() view returns(address)

func (*VaultV2Caller) Errors

func (_VaultV2 *VaultV2Caller) Errors(opts *bind.CallOpts, arg0 *big.Int) (string, error)

Errors is a free data retrieval call binding the contract method 0xfed1a606.

Solidity: function errors(uint256 ) view returns(string)

func (*VaultV2Caller) FUNDINGRATEPRECISION

func (_VaultV2 *VaultV2Caller) FUNDINGRATEPRECISION(opts *bind.CallOpts) (*big.Int, error)

FUNDINGRATEPRECISION is a free data retrieval call binding the contract method 0x6be6026b.

Solidity: function FUNDING_RATE_PRECISION() view returns(uint256)

func (*VaultV2Caller) FeeReserves

func (_VaultV2 *VaultV2Caller) FeeReserves(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

FeeReserves is a free data retrieval call binding the contract method 0x1ce9cb8f.

Solidity: function feeReserves(address ) view returns(uint256)

func (*VaultV2Caller) FundingInterval

func (_VaultV2 *VaultV2Caller) FundingInterval(opts *bind.CallOpts) (*big.Int, error)

FundingInterval is a free data retrieval call binding the contract method 0x9849e412.

Solidity: function fundingInterval() view returns(uint256)

func (*VaultV2Caller) FundingRateFactor

func (_VaultV2 *VaultV2Caller) FundingRateFactor(opts *bind.CallOpts) (*big.Int, error)

FundingRateFactor is a free data retrieval call binding the contract method 0xc4f718bf.

Solidity: function fundingRateFactor() view returns(uint256)

func (*VaultV2Caller) GetDelta

func (_VaultV2 *VaultV2Caller) GetDelta(opts *bind.CallOpts, _indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _lastIncreasedTime *big.Int) (bool, *big.Int, error)

GetDelta is a free data retrieval call binding the contract method 0x5c07eaab.

Solidity: function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) view returns(bool, uint256)

func (*VaultV2Caller) GetEntryFundingRate

func (_VaultV2 *VaultV2Caller) GetEntryFundingRate(opts *bind.CallOpts, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)

GetEntryFundingRate is a free data retrieval call binding the contract method 0xb1cc53ab.

Solidity: function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)

func (*VaultV2Caller) GetFeeBasisPoints

func (_VaultV2 *VaultV2Caller) GetFeeBasisPoints(opts *bind.CallOpts, _token common.Address, _usdgDelta *big.Int, _feeBasisPoints *big.Int, _taxBasisPoints *big.Int, _increment bool) (*big.Int, error)

GetFeeBasisPoints is a free data retrieval call binding the contract method 0xc7e074c3.

Solidity: function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) view returns(uint256)

func (*VaultV2Caller) GetFundingFee

func (_VaultV2 *VaultV2Caller) GetFundingFee(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _size *big.Int, _entryFundingRate *big.Int) (*big.Int, error)

GetFundingFee is a free data retrieval call binding the contract method 0xda76524c.

Solidity: function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) view returns(uint256)

func (*VaultV2Caller) GetGlobalShortDelta

func (_VaultV2 *VaultV2Caller) GetGlobalShortDelta(opts *bind.CallOpts, _token common.Address) (bool, *big.Int, error)

GetGlobalShortDelta is a free data retrieval call binding the contract method 0xb364accb.

Solidity: function getGlobalShortDelta(address _token) view returns(bool, uint256)

func (*VaultV2Caller) GetMaxPrice

func (_VaultV2 *VaultV2Caller) GetMaxPrice(opts *bind.CallOpts, _token common.Address) (*big.Int, error)

GetMaxPrice is a free data retrieval call binding the contract method 0xe124e6d2.

Solidity: function getMaxPrice(address _token) view returns(uint256)

func (*VaultV2Caller) GetMinPrice

func (_VaultV2 *VaultV2Caller) GetMinPrice(opts *bind.CallOpts, _token common.Address) (*big.Int, error)

GetMinPrice is a free data retrieval call binding the contract method 0x81a612d6.

Solidity: function getMinPrice(address _token) view returns(uint256)

func (*VaultV2Caller) GetNextAveragePrice

func (_VaultV2 *VaultV2Caller) GetNextAveragePrice(opts *bind.CallOpts, _indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _nextPrice *big.Int, _sizeDelta *big.Int, _lastIncreasedTime *big.Int) (*big.Int, error)

GetNextAveragePrice is a free data retrieval call binding the contract method 0xdb97495f.

Solidity: function getNextAveragePrice(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _nextPrice, uint256 _sizeDelta, uint256 _lastIncreasedTime) view returns(uint256)

func (*VaultV2Caller) GetNextFundingRate

func (_VaultV2 *VaultV2Caller) GetNextFundingRate(opts *bind.CallOpts, _token common.Address) (*big.Int, error)

GetNextFundingRate is a free data retrieval call binding the contract method 0xa93acac2.

Solidity: function getNextFundingRate(address _token) view returns(uint256)

func (*VaultV2Caller) GetNextGlobalShortAveragePrice

func (_VaultV2 *VaultV2Caller) GetNextGlobalShortAveragePrice(opts *bind.CallOpts, _indexToken common.Address, _nextPrice *big.Int, _sizeDelta *big.Int) (*big.Int, error)

GetNextGlobalShortAveragePrice is a free data retrieval call binding the contract method 0x9d7432ca.

Solidity: function getNextGlobalShortAveragePrice(address _indexToken, uint256 _nextPrice, uint256 _sizeDelta) view returns(uint256)

func (*VaultV2Caller) GetPosition

func (_VaultV2 *VaultV2Caller) GetPosition(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, bool, *big.Int, error)

GetPosition is a free data retrieval call binding the contract method 0x4a3f088d.

Solidity: function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256)

func (*VaultV2Caller) GetPositionDelta

func (_VaultV2 *VaultV2Caller) GetPositionDelta(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (bool, *big.Int, error)

GetPositionDelta is a free data retrieval call binding the contract method 0x45a6f370.

Solidity: function getPositionDelta(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(bool, uint256)

func (*VaultV2Caller) GetPositionFee

func (_VaultV2 *VaultV2Caller) GetPositionFee(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _sizeDelta *big.Int) (*big.Int, error)

GetPositionFee is a free data retrieval call binding the contract method 0xfdaf6ac3.

Solidity: function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) view returns(uint256)

func (*VaultV2Caller) GetPositionKey

func (_VaultV2 *VaultV2Caller) GetPositionKey(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) ([32]byte, error)

GetPositionKey is a free data retrieval call binding the contract method 0x2d4b0576.

Solidity: function getPositionKey(address _account, address _collateralToken, address _indexToken, bool _isLong) pure returns(bytes32)

func (*VaultV2Caller) GetPositionLeverage

func (_VaultV2 *VaultV2Caller) GetPositionLeverage(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)

GetPositionLeverage is a free data retrieval call binding the contract method 0x51723e82.

Solidity: function getPositionLeverage(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)

func (*VaultV2Caller) GetRedemptionAmount

func (_VaultV2 *VaultV2Caller) GetRedemptionAmount(opts *bind.CallOpts, _token common.Address, _usdgAmount *big.Int) (*big.Int, error)

GetRedemptionAmount is a free data retrieval call binding the contract method 0x2c668ec1.

Solidity: function getRedemptionAmount(address _token, uint256 _usdgAmount) view returns(uint256)

func (*VaultV2Caller) GetRedemptionCollateral

func (_VaultV2 *VaultV2Caller) GetRedemptionCollateral(opts *bind.CallOpts, _token common.Address) (*big.Int, error)

GetRedemptionCollateral is a free data retrieval call binding the contract method 0xb136ca49.

Solidity: function getRedemptionCollateral(address _token) view returns(uint256)

func (*VaultV2Caller) GetRedemptionCollateralUsd

func (_VaultV2 *VaultV2Caller) GetRedemptionCollateralUsd(opts *bind.CallOpts, _token common.Address) (*big.Int, error)

GetRedemptionCollateralUsd is a free data retrieval call binding the contract method 0x29ff9615.

Solidity: function getRedemptionCollateralUsd(address _token) view returns(uint256)

func (*VaultV2Caller) GetTargetUsdgAmount

func (_VaultV2 *VaultV2Caller) GetTargetUsdgAmount(opts *bind.CallOpts, _token common.Address) (*big.Int, error)

GetTargetUsdgAmount is a free data retrieval call binding the contract method 0x3a05dcc1.

Solidity: function getTargetUsdgAmount(address _token) view returns(uint256)

func (*VaultV2Caller) GetUtilisation

func (_VaultV2 *VaultV2Caller) GetUtilisation(opts *bind.CallOpts, _token common.Address) (*big.Int, error)

GetUtilisation is a free data retrieval call binding the contract method 0x04fef1db.

Solidity: function getUtilisation(address _token) view returns(uint256)

func (*VaultV2Caller) GlobalShortAveragePrices

func (_VaultV2 *VaultV2Caller) GlobalShortAveragePrices(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

GlobalShortAveragePrices is a free data retrieval call binding the contract method 0x62749803.

Solidity: function globalShortAveragePrices(address ) view returns(uint256)

func (*VaultV2Caller) GlobalShortSizes

func (_VaultV2 *VaultV2Caller) GlobalShortSizes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

GlobalShortSizes is a free data retrieval call binding the contract method 0x8a78daa8.

Solidity: function globalShortSizes(address ) view returns(uint256)

func (*VaultV2Caller) Gov

func (_VaultV2 *VaultV2Caller) Gov(opts *bind.CallOpts) (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*VaultV2Caller) GuaranteedUsd

func (_VaultV2 *VaultV2Caller) GuaranteedUsd(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

GuaranteedUsd is a free data retrieval call binding the contract method 0xf07456ce.

Solidity: function guaranteedUsd(address ) view returns(uint256)

func (*VaultV2Caller) HasDynamicFees

func (_VaultV2 *VaultV2Caller) HasDynamicFees(opts *bind.CallOpts) (bool, error)

HasDynamicFees is a free data retrieval call binding the contract method 0x9f392eb3.

Solidity: function hasDynamicFees() view returns(bool)

func (*VaultV2Caller) InManagerMode

func (_VaultV2 *VaultV2Caller) InManagerMode(opts *bind.CallOpts) (bool, error)

InManagerMode is a free data retrieval call binding the contract method 0x9060b1ca.

Solidity: function inManagerMode() view returns(bool)

func (*VaultV2Caller) InPrivateLiquidationMode

func (_VaultV2 *VaultV2Caller) InPrivateLiquidationMode(opts *bind.CallOpts) (bool, error)

InPrivateLiquidationMode is a free data retrieval call binding the contract method 0x181e210e.

Solidity: function inPrivateLiquidationMode() view returns(bool)

func (*VaultV2Caller) IncludeAmmPrice

func (_VaultV2 *VaultV2Caller) IncludeAmmPrice(opts *bind.CallOpts) (bool, error)

IncludeAmmPrice is a free data retrieval call binding the contract method 0xab08c1c6.

Solidity: function includeAmmPrice() view returns(bool)

func (*VaultV2Caller) IsInitialized

func (_VaultV2 *VaultV2Caller) IsInitialized(opts *bind.CallOpts) (bool, error)

IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.

Solidity: function isInitialized() view returns(bool)

func (*VaultV2Caller) IsLeverageEnabled

func (_VaultV2 *VaultV2Caller) IsLeverageEnabled(opts *bind.CallOpts) (bool, error)

IsLeverageEnabled is a free data retrieval call binding the contract method 0x3e72a262.

Solidity: function isLeverageEnabled() view returns(bool)

func (*VaultV2Caller) IsLiquidator

func (_VaultV2 *VaultV2Caller) IsLiquidator(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsLiquidator is a free data retrieval call binding the contract method 0x529a356f.

Solidity: function isLiquidator(address ) view returns(bool)

func (*VaultV2Caller) IsManager

func (_VaultV2 *VaultV2Caller) IsManager(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsManager is a free data retrieval call binding the contract method 0xf3ae2415.

Solidity: function isManager(address ) view returns(bool)

func (*VaultV2Caller) IsSwapEnabled

func (_VaultV2 *VaultV2Caller) IsSwapEnabled(opts *bind.CallOpts) (bool, error)

IsSwapEnabled is a free data retrieval call binding the contract method 0x351a964d.

Solidity: function isSwapEnabled() view returns(bool)

func (*VaultV2Caller) LastFundingTimes

func (_VaultV2 *VaultV2Caller) LastFundingTimes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

LastFundingTimes is a free data retrieval call binding the contract method 0xd8f897c3.

Solidity: function lastFundingTimes(address ) view returns(uint256)

func (*VaultV2Caller) LiquidationFeeUsd

func (_VaultV2 *VaultV2Caller) LiquidationFeeUsd(opts *bind.CallOpts) (*big.Int, error)

LiquidationFeeUsd is a free data retrieval call binding the contract method 0x174d2694.

Solidity: function liquidationFeeUsd() view returns(uint256)

func (*VaultV2Caller) MAXFEEBASISPOINTS

func (_VaultV2 *VaultV2Caller) MAXFEEBASISPOINTS(opts *bind.CallOpts) (*big.Int, error)

MAXFEEBASISPOINTS is a free data retrieval call binding the contract method 0x4befe2ca.

Solidity: function MAX_FEE_BASIS_POINTS() view returns(uint256)

func (*VaultV2Caller) MAXFUNDINGRATEFACTOR

func (_VaultV2 *VaultV2Caller) MAXFUNDINGRATEFACTOR(opts *bind.CallOpts) (*big.Int, error)

MAXFUNDINGRATEFACTOR is a free data retrieval call binding the contract method 0x8a39735a.

Solidity: function MAX_FUNDING_RATE_FACTOR() view returns(uint256)

func (*VaultV2Caller) MAXLIQUIDATIONFEEUSD

func (_VaultV2 *VaultV2Caller) MAXLIQUIDATIONFEEUSD(opts *bind.CallOpts) (*big.Int, error)

MAXLIQUIDATIONFEEUSD is a free data retrieval call binding the contract method 0x07c58752.

Solidity: function MAX_LIQUIDATION_FEE_USD() view returns(uint256)

func (*VaultV2Caller) MINFUNDINGRATEINTERVAL

func (_VaultV2 *VaultV2Caller) MINFUNDINGRATEINTERVAL(opts *bind.CallOpts) (*big.Int, error)

MINFUNDINGRATEINTERVAL is a free data retrieval call binding the contract method 0xfce28c10.

Solidity: function MIN_FUNDING_RATE_INTERVAL() view returns(uint256)

func (*VaultV2Caller) MINLEVERAGE

func (_VaultV2 *VaultV2Caller) MINLEVERAGE(opts *bind.CallOpts) (*big.Int, error)

MINLEVERAGE is a free data retrieval call binding the contract method 0x34c1557d.

Solidity: function MIN_LEVERAGE() view returns(uint256)

func (*VaultV2Caller) MarginFeeBasisPoints

func (_VaultV2 *VaultV2Caller) MarginFeeBasisPoints(opts *bind.CallOpts) (*big.Int, error)

MarginFeeBasisPoints is a free data retrieval call binding the contract method 0x318bc689.

Solidity: function marginFeeBasisPoints() view returns(uint256)

func (*VaultV2Caller) MaxGasPrice

func (_VaultV2 *VaultV2Caller) MaxGasPrice(opts *bind.CallOpts) (*big.Int, error)

MaxGasPrice is a free data retrieval call binding the contract method 0x3de39c11.

Solidity: function maxGasPrice() view returns(uint256)

func (*VaultV2Caller) MaxGlobalShortSizes

func (_VaultV2 *VaultV2Caller) MaxGlobalShortSizes(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

MaxGlobalShortSizes is a free data retrieval call binding the contract method 0x9698d25a.

Solidity: function maxGlobalShortSizes(address ) view returns(uint256)

func (*VaultV2Caller) MaxLeverage

func (_VaultV2 *VaultV2Caller) MaxLeverage(opts *bind.CallOpts) (*big.Int, error)

MaxLeverage is a free data retrieval call binding the contract method 0xae3302c2.

Solidity: function maxLeverage() view returns(uint256)

func (*VaultV2Caller) MaxUsdgAmounts

func (_VaultV2 *VaultV2Caller) MaxUsdgAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

MaxUsdgAmounts is a free data retrieval call binding the contract method 0xad1e4f8d.

Solidity: function maxUsdgAmounts(address ) view returns(uint256)

func (*VaultV2Caller) MinProfitBasisPoints

func (_VaultV2 *VaultV2Caller) MinProfitBasisPoints(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

MinProfitBasisPoints is a free data retrieval call binding the contract method 0x88b1fbdf.

Solidity: function minProfitBasisPoints(address ) view returns(uint256)

func (*VaultV2Caller) MinProfitTime

func (_VaultV2 *VaultV2Caller) MinProfitTime(opts *bind.CallOpts) (*big.Int, error)

MinProfitTime is a free data retrieval call binding the contract method 0xd9ac4225.

Solidity: function minProfitTime() view returns(uint256)

func (*VaultV2Caller) MintBurnFeeBasisPoints

func (_VaultV2 *VaultV2Caller) MintBurnFeeBasisPoints(opts *bind.CallOpts) (*big.Int, error)

MintBurnFeeBasisPoints is a free data retrieval call binding the contract method 0x4d47b304.

Solidity: function mintBurnFeeBasisPoints() view returns(uint256)

func (*VaultV2Caller) PRICEPRECISION

func (_VaultV2 *VaultV2Caller) PRICEPRECISION(opts *bind.CallOpts) (*big.Int, error)

PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.

Solidity: function PRICE_PRECISION() view returns(uint256)

func (*VaultV2Caller) PoolAmounts

func (_VaultV2 *VaultV2Caller) PoolAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

PoolAmounts is a free data retrieval call binding the contract method 0x52f55eed.

Solidity: function poolAmounts(address ) view returns(uint256)

func (*VaultV2Caller) Positions

func (_VaultV2 *VaultV2Caller) Positions(opts *bind.CallOpts, arg0 [32]byte) (struct {
	Size              *big.Int
	Collateral        *big.Int
	AveragePrice      *big.Int
	EntryFundingRate  *big.Int
	ReserveAmount     *big.Int
	RealisedPnl       *big.Int
	LastIncreasedTime *big.Int
}, error)

Positions is a free data retrieval call binding the contract method 0x514ea4bf.

Solidity: function positions(bytes32 ) view returns(uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 lastIncreasedTime)

func (*VaultV2Caller) PriceFeed

func (_VaultV2 *VaultV2Caller) PriceFeed(opts *bind.CallOpts) (common.Address, error)

PriceFeed is a free data retrieval call binding the contract method 0x741bef1a.

Solidity: function priceFeed() view returns(address)

func (*VaultV2Caller) ReservedAmounts

func (_VaultV2 *VaultV2Caller) ReservedAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

ReservedAmounts is a free data retrieval call binding the contract method 0xc3c7b9e9.

Solidity: function reservedAmounts(address ) view returns(uint256)

func (*VaultV2Caller) Router

func (_VaultV2 *VaultV2Caller) Router(opts *bind.CallOpts) (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*VaultV2Caller) ShortableTokens

func (_VaultV2 *VaultV2Caller) ShortableTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)

ShortableTokens is a free data retrieval call binding the contract method 0xdb3555fb.

Solidity: function shortableTokens(address ) view returns(bool)

func (*VaultV2Caller) StableFundingRateFactor

func (_VaultV2 *VaultV2Caller) StableFundingRateFactor(opts *bind.CallOpts) (*big.Int, error)

StableFundingRateFactor is a free data retrieval call binding the contract method 0x134ca63b.

Solidity: function stableFundingRateFactor() view returns(uint256)

func (*VaultV2Caller) StableSwapFeeBasisPoints

func (_VaultV2 *VaultV2Caller) StableSwapFeeBasisPoints(opts *bind.CallOpts) (*big.Int, error)

StableSwapFeeBasisPoints is a free data retrieval call binding the contract method 0xdf73a267.

Solidity: function stableSwapFeeBasisPoints() view returns(uint256)

func (*VaultV2Caller) StableTaxBasisPoints

func (_VaultV2 *VaultV2Caller) StableTaxBasisPoints(opts *bind.CallOpts) (*big.Int, error)

StableTaxBasisPoints is a free data retrieval call binding the contract method 0x10eb56c2.

Solidity: function stableTaxBasisPoints() view returns(uint256)

func (*VaultV2Caller) StableTokens

func (_VaultV2 *VaultV2Caller) StableTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)

StableTokens is a free data retrieval call binding the contract method 0x42b60b03.

Solidity: function stableTokens(address ) view returns(bool)

func (*VaultV2Caller) SwapFeeBasisPoints

func (_VaultV2 *VaultV2Caller) SwapFeeBasisPoints(opts *bind.CallOpts) (*big.Int, error)

SwapFeeBasisPoints is a free data retrieval call binding the contract method 0xa22f2392.

Solidity: function swapFeeBasisPoints() view returns(uint256)

func (*VaultV2Caller) TaxBasisPoints

func (_VaultV2 *VaultV2Caller) TaxBasisPoints(opts *bind.CallOpts) (*big.Int, error)

TaxBasisPoints is a free data retrieval call binding the contract method 0x7a210a2b.

Solidity: function taxBasisPoints() view returns(uint256)

func (*VaultV2Caller) TokenBalances

func (_VaultV2 *VaultV2Caller) TokenBalances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TokenBalances is a free data retrieval call binding the contract method 0x523fba7f.

Solidity: function tokenBalances(address ) view returns(uint256)

func (*VaultV2Caller) TokenDecimals

func (_VaultV2 *VaultV2Caller) TokenDecimals(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.

Solidity: function tokenDecimals(address ) view returns(uint256)

func (*VaultV2Caller) TokenToUsdMin

func (_VaultV2 *VaultV2Caller) TokenToUsdMin(opts *bind.CallOpts, _token common.Address, _tokenAmount *big.Int) (*big.Int, error)

TokenToUsdMin is a free data retrieval call binding the contract method 0x0a48d5a9.

Solidity: function tokenToUsdMin(address _token, uint256 _tokenAmount) view returns(uint256)

func (*VaultV2Caller) TokenWeights

func (_VaultV2 *VaultV2Caller) TokenWeights(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TokenWeights is a free data retrieval call binding the contract method 0xab2f3ad4.

Solidity: function tokenWeights(address ) view returns(uint256)

func (*VaultV2Caller) TotalTokenWeights

func (_VaultV2 *VaultV2Caller) TotalTokenWeights(opts *bind.CallOpts) (*big.Int, error)

TotalTokenWeights is a free data retrieval call binding the contract method 0xdc8f5fac.

Solidity: function totalTokenWeights() view returns(uint256)

func (*VaultV2Caller) USDGDECIMALS

func (_VaultV2 *VaultV2Caller) USDGDECIMALS(opts *bind.CallOpts) (*big.Int, error)

USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.

Solidity: function USDG_DECIMALS() view returns(uint256)

func (*VaultV2Caller) UsdToToken

func (_VaultV2 *VaultV2Caller) UsdToToken(opts *bind.CallOpts, _token common.Address, _usdAmount *big.Int, _price *big.Int) (*big.Int, error)

UsdToToken is a free data retrieval call binding the contract method 0xfa12dbc0.

Solidity: function usdToToken(address _token, uint256 _usdAmount, uint256 _price) view returns(uint256)

func (*VaultV2Caller) UsdToTokenMax

func (_VaultV2 *VaultV2Caller) UsdToTokenMax(opts *bind.CallOpts, _token common.Address, _usdAmount *big.Int) (*big.Int, error)

UsdToTokenMax is a free data retrieval call binding the contract method 0xa42ab3d2.

Solidity: function usdToTokenMax(address _token, uint256 _usdAmount) view returns(uint256)

func (*VaultV2Caller) UsdToTokenMin

func (_VaultV2 *VaultV2Caller) UsdToTokenMin(opts *bind.CallOpts, _token common.Address, _usdAmount *big.Int) (*big.Int, error)

UsdToTokenMin is a free data retrieval call binding the contract method 0x9899cd02.

Solidity: function usdToTokenMin(address _token, uint256 _usdAmount) view returns(uint256)

func (*VaultV2Caller) Usdg

func (_VaultV2 *VaultV2Caller) Usdg(opts *bind.CallOpts) (common.Address, error)

Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.

Solidity: function usdg() view returns(address)

func (*VaultV2Caller) UsdgAmounts

func (_VaultV2 *VaultV2Caller) UsdgAmounts(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

UsdgAmounts is a free data retrieval call binding the contract method 0x1aa4ace5.

Solidity: function usdgAmounts(address ) view returns(uint256)

func (*VaultV2Caller) UseSwapPricing

func (_VaultV2 *VaultV2Caller) UseSwapPricing(opts *bind.CallOpts) (bool, error)

UseSwapPricing is a free data retrieval call binding the contract method 0xb06423f3.

Solidity: function useSwapPricing() view returns(bool)

func (*VaultV2Caller) ValidateLiquidation

func (_VaultV2 *VaultV2Caller) ValidateLiquidation(opts *bind.CallOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _raise bool) (*big.Int, *big.Int, error)

ValidateLiquidation is a free data retrieval call binding the contract method 0xd54d5a9f.

Solidity: function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) view returns(uint256, uint256)

func (*VaultV2Caller) VaultUtils

func (_VaultV2 *VaultV2Caller) VaultUtils(opts *bind.CallOpts) (common.Address, error)

VaultUtils is a free data retrieval call binding the contract method 0x6abbe0c8.

Solidity: function vaultUtils() view returns(address)

func (*VaultV2Caller) WhitelistedTokenCount

func (_VaultV2 *VaultV2Caller) WhitelistedTokenCount(opts *bind.CallOpts) (*big.Int, error)

WhitelistedTokenCount is a free data retrieval call binding the contract method 0x62287a32.

Solidity: function whitelistedTokenCount() view returns(uint256)

func (*VaultV2Caller) WhitelistedTokens

func (_VaultV2 *VaultV2Caller) WhitelistedTokens(opts *bind.CallOpts, arg0 common.Address) (bool, error)

WhitelistedTokens is a free data retrieval call binding the contract method 0xdaf9c210.

Solidity: function whitelistedTokens(address ) view returns(bool)

type VaultV2CallerRaw

type VaultV2CallerRaw struct {
	Contract *VaultV2Caller // Generic read-only contract binding to access the raw methods on
}

VaultV2CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*VaultV2CallerRaw) Call

func (_VaultV2 *VaultV2CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type VaultV2CallerSession

type VaultV2CallerSession struct {
	Contract *VaultV2Caller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts  // Call options to use throughout this session
}

VaultV2CallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*VaultV2CallerSession) AdjustForDecimals

func (_VaultV2 *VaultV2CallerSession) AdjustForDecimals(_amount *big.Int, _tokenDiv common.Address, _tokenMul common.Address) (*big.Int, error)

AdjustForDecimals is a free data retrieval call binding the contract method 0x42152873.

Solidity: function adjustForDecimals(uint256 _amount, address _tokenDiv, address _tokenMul) view returns(uint256)

func (*VaultV2CallerSession) AllWhitelistedTokens

func (_VaultV2 *VaultV2CallerSession) AllWhitelistedTokens(arg0 *big.Int) (common.Address, error)

AllWhitelistedTokens is a free data retrieval call binding the contract method 0xe468baf0.

Solidity: function allWhitelistedTokens(uint256 ) view returns(address)

func (*VaultV2CallerSession) AllWhitelistedTokensLength

func (_VaultV2 *VaultV2CallerSession) AllWhitelistedTokensLength() (*big.Int, error)

AllWhitelistedTokensLength is a free data retrieval call binding the contract method 0x0842b076.

Solidity: function allWhitelistedTokensLength() view returns(uint256)

func (*VaultV2CallerSession) ApprovedRouters

func (_VaultV2 *VaultV2CallerSession) ApprovedRouters(arg0 common.Address, arg1 common.Address) (bool, error)

ApprovedRouters is a free data retrieval call binding the contract method 0x60922199.

Solidity: function approvedRouters(address , address ) view returns(bool)

func (*VaultV2CallerSession) BASISPOINTSDIVISOR

func (_VaultV2 *VaultV2CallerSession) BASISPOINTSDIVISOR() (*big.Int, error)

BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.

Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)

func (*VaultV2CallerSession) BufferAmounts

func (_VaultV2 *VaultV2CallerSession) BufferAmounts(arg0 common.Address) (*big.Int, error)

BufferAmounts is a free data retrieval call binding the contract method 0x4a993ee9.

Solidity: function bufferAmounts(address ) view returns(uint256)

func (*VaultV2CallerSession) CumulativeFundingRates

func (_VaultV2 *VaultV2CallerSession) CumulativeFundingRates(arg0 common.Address) (*big.Int, error)

CumulativeFundingRates is a free data retrieval call binding the contract method 0xc65bc7b1.

Solidity: function cumulativeFundingRates(address ) view returns(uint256)

func (*VaultV2CallerSession) ErrorController

func (_VaultV2 *VaultV2CallerSession) ErrorController() (common.Address, error)

ErrorController is a free data retrieval call binding the contract method 0x48f35cbb.

Solidity: function errorController() view returns(address)

func (*VaultV2CallerSession) Errors

func (_VaultV2 *VaultV2CallerSession) Errors(arg0 *big.Int) (string, error)

Errors is a free data retrieval call binding the contract method 0xfed1a606.

Solidity: function errors(uint256 ) view returns(string)

func (*VaultV2CallerSession) FUNDINGRATEPRECISION

func (_VaultV2 *VaultV2CallerSession) FUNDINGRATEPRECISION() (*big.Int, error)

FUNDINGRATEPRECISION is a free data retrieval call binding the contract method 0x6be6026b.

Solidity: function FUNDING_RATE_PRECISION() view returns(uint256)

func (*VaultV2CallerSession) FeeReserves

func (_VaultV2 *VaultV2CallerSession) FeeReserves(arg0 common.Address) (*big.Int, error)

FeeReserves is a free data retrieval call binding the contract method 0x1ce9cb8f.

Solidity: function feeReserves(address ) view returns(uint256)

func (*VaultV2CallerSession) FundingInterval

func (_VaultV2 *VaultV2CallerSession) FundingInterval() (*big.Int, error)

FundingInterval is a free data retrieval call binding the contract method 0x9849e412.

Solidity: function fundingInterval() view returns(uint256)

func (*VaultV2CallerSession) FundingRateFactor

func (_VaultV2 *VaultV2CallerSession) FundingRateFactor() (*big.Int, error)

FundingRateFactor is a free data retrieval call binding the contract method 0xc4f718bf.

Solidity: function fundingRateFactor() view returns(uint256)

func (*VaultV2CallerSession) GetDelta

func (_VaultV2 *VaultV2CallerSession) GetDelta(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _lastIncreasedTime *big.Int) (bool, *big.Int, error)

GetDelta is a free data retrieval call binding the contract method 0x5c07eaab.

Solidity: function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) view returns(bool, uint256)

func (*VaultV2CallerSession) GetEntryFundingRate

func (_VaultV2 *VaultV2CallerSession) GetEntryFundingRate(_collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)

GetEntryFundingRate is a free data retrieval call binding the contract method 0xb1cc53ab.

Solidity: function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)

func (*VaultV2CallerSession) GetFeeBasisPoints

func (_VaultV2 *VaultV2CallerSession) GetFeeBasisPoints(_token common.Address, _usdgDelta *big.Int, _feeBasisPoints *big.Int, _taxBasisPoints *big.Int, _increment bool) (*big.Int, error)

GetFeeBasisPoints is a free data retrieval call binding the contract method 0xc7e074c3.

Solidity: function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) view returns(uint256)

func (*VaultV2CallerSession) GetFundingFee

func (_VaultV2 *VaultV2CallerSession) GetFundingFee(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _size *big.Int, _entryFundingRate *big.Int) (*big.Int, error)

GetFundingFee is a free data retrieval call binding the contract method 0xda76524c.

Solidity: function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) view returns(uint256)

func (*VaultV2CallerSession) GetGlobalShortDelta

func (_VaultV2 *VaultV2CallerSession) GetGlobalShortDelta(_token common.Address) (bool, *big.Int, error)

GetGlobalShortDelta is a free data retrieval call binding the contract method 0xb364accb.

Solidity: function getGlobalShortDelta(address _token) view returns(bool, uint256)

func (*VaultV2CallerSession) GetMaxPrice

func (_VaultV2 *VaultV2CallerSession) GetMaxPrice(_token common.Address) (*big.Int, error)

GetMaxPrice is a free data retrieval call binding the contract method 0xe124e6d2.

Solidity: function getMaxPrice(address _token) view returns(uint256)

func (*VaultV2CallerSession) GetMinPrice

func (_VaultV2 *VaultV2CallerSession) GetMinPrice(_token common.Address) (*big.Int, error)

GetMinPrice is a free data retrieval call binding the contract method 0x81a612d6.

Solidity: function getMinPrice(address _token) view returns(uint256)

func (*VaultV2CallerSession) GetNextAveragePrice

func (_VaultV2 *VaultV2CallerSession) GetNextAveragePrice(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _nextPrice *big.Int, _sizeDelta *big.Int, _lastIncreasedTime *big.Int) (*big.Int, error)

GetNextAveragePrice is a free data retrieval call binding the contract method 0xdb97495f.

Solidity: function getNextAveragePrice(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _nextPrice, uint256 _sizeDelta, uint256 _lastIncreasedTime) view returns(uint256)

func (*VaultV2CallerSession) GetNextFundingRate

func (_VaultV2 *VaultV2CallerSession) GetNextFundingRate(_token common.Address) (*big.Int, error)

GetNextFundingRate is a free data retrieval call binding the contract method 0xa93acac2.

Solidity: function getNextFundingRate(address _token) view returns(uint256)

func (*VaultV2CallerSession) GetNextGlobalShortAveragePrice

func (_VaultV2 *VaultV2CallerSession) GetNextGlobalShortAveragePrice(_indexToken common.Address, _nextPrice *big.Int, _sizeDelta *big.Int) (*big.Int, error)

GetNextGlobalShortAveragePrice is a free data retrieval call binding the contract method 0x9d7432ca.

Solidity: function getNextGlobalShortAveragePrice(address _indexToken, uint256 _nextPrice, uint256 _sizeDelta) view returns(uint256)

func (*VaultV2CallerSession) GetPosition

func (_VaultV2 *VaultV2CallerSession) GetPosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, bool, *big.Int, error)

GetPosition is a free data retrieval call binding the contract method 0x4a3f088d.

Solidity: function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256)

func (*VaultV2CallerSession) GetPositionDelta

func (_VaultV2 *VaultV2CallerSession) GetPositionDelta(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (bool, *big.Int, error)

GetPositionDelta is a free data retrieval call binding the contract method 0x45a6f370.

Solidity: function getPositionDelta(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(bool, uint256)

func (*VaultV2CallerSession) GetPositionFee

func (_VaultV2 *VaultV2CallerSession) GetPositionFee(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _sizeDelta *big.Int) (*big.Int, error)

GetPositionFee is a free data retrieval call binding the contract method 0xfdaf6ac3.

Solidity: function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) view returns(uint256)

func (*VaultV2CallerSession) GetPositionKey

func (_VaultV2 *VaultV2CallerSession) GetPositionKey(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) ([32]byte, error)

GetPositionKey is a free data retrieval call binding the contract method 0x2d4b0576.

Solidity: function getPositionKey(address _account, address _collateralToken, address _indexToken, bool _isLong) pure returns(bytes32)

func (*VaultV2CallerSession) GetPositionLeverage

func (_VaultV2 *VaultV2CallerSession) GetPositionLeverage(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)

GetPositionLeverage is a free data retrieval call binding the contract method 0x51723e82.

Solidity: function getPositionLeverage(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)

func (*VaultV2CallerSession) GetRedemptionAmount

func (_VaultV2 *VaultV2CallerSession) GetRedemptionAmount(_token common.Address, _usdgAmount *big.Int) (*big.Int, error)

GetRedemptionAmount is a free data retrieval call binding the contract method 0x2c668ec1.

Solidity: function getRedemptionAmount(address _token, uint256 _usdgAmount) view returns(uint256)

func (*VaultV2CallerSession) GetRedemptionCollateral

func (_VaultV2 *VaultV2CallerSession) GetRedemptionCollateral(_token common.Address) (*big.Int, error)

GetRedemptionCollateral is a free data retrieval call binding the contract method 0xb136ca49.

Solidity: function getRedemptionCollateral(address _token) view returns(uint256)

func (*VaultV2CallerSession) GetRedemptionCollateralUsd

func (_VaultV2 *VaultV2CallerSession) GetRedemptionCollateralUsd(_token common.Address) (*big.Int, error)

GetRedemptionCollateralUsd is a free data retrieval call binding the contract method 0x29ff9615.

Solidity: function getRedemptionCollateralUsd(address _token) view returns(uint256)

func (*VaultV2CallerSession) GetTargetUsdgAmount

func (_VaultV2 *VaultV2CallerSession) GetTargetUsdgAmount(_token common.Address) (*big.Int, error)

GetTargetUsdgAmount is a free data retrieval call binding the contract method 0x3a05dcc1.

Solidity: function getTargetUsdgAmount(address _token) view returns(uint256)

func (*VaultV2CallerSession) GetUtilisation

func (_VaultV2 *VaultV2CallerSession) GetUtilisation(_token common.Address) (*big.Int, error)

GetUtilisation is a free data retrieval call binding the contract method 0x04fef1db.

Solidity: function getUtilisation(address _token) view returns(uint256)

func (*VaultV2CallerSession) GlobalShortAveragePrices

func (_VaultV2 *VaultV2CallerSession) GlobalShortAveragePrices(arg0 common.Address) (*big.Int, error)

GlobalShortAveragePrices is a free data retrieval call binding the contract method 0x62749803.

Solidity: function globalShortAveragePrices(address ) view returns(uint256)

func (*VaultV2CallerSession) GlobalShortSizes

func (_VaultV2 *VaultV2CallerSession) GlobalShortSizes(arg0 common.Address) (*big.Int, error)

GlobalShortSizes is a free data retrieval call binding the contract method 0x8a78daa8.

Solidity: function globalShortSizes(address ) view returns(uint256)

func (*VaultV2CallerSession) Gov

func (_VaultV2 *VaultV2CallerSession) Gov() (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*VaultV2CallerSession) GuaranteedUsd

func (_VaultV2 *VaultV2CallerSession) GuaranteedUsd(arg0 common.Address) (*big.Int, error)

GuaranteedUsd is a free data retrieval call binding the contract method 0xf07456ce.

Solidity: function guaranteedUsd(address ) view returns(uint256)

func (*VaultV2CallerSession) HasDynamicFees

func (_VaultV2 *VaultV2CallerSession) HasDynamicFees() (bool, error)

HasDynamicFees is a free data retrieval call binding the contract method 0x9f392eb3.

Solidity: function hasDynamicFees() view returns(bool)

func (*VaultV2CallerSession) InManagerMode

func (_VaultV2 *VaultV2CallerSession) InManagerMode() (bool, error)

InManagerMode is a free data retrieval call binding the contract method 0x9060b1ca.

Solidity: function inManagerMode() view returns(bool)

func (*VaultV2CallerSession) InPrivateLiquidationMode

func (_VaultV2 *VaultV2CallerSession) InPrivateLiquidationMode() (bool, error)

InPrivateLiquidationMode is a free data retrieval call binding the contract method 0x181e210e.

Solidity: function inPrivateLiquidationMode() view returns(bool)

func (*VaultV2CallerSession) IncludeAmmPrice

func (_VaultV2 *VaultV2CallerSession) IncludeAmmPrice() (bool, error)

IncludeAmmPrice is a free data retrieval call binding the contract method 0xab08c1c6.

Solidity: function includeAmmPrice() view returns(bool)

func (*VaultV2CallerSession) IsInitialized

func (_VaultV2 *VaultV2CallerSession) IsInitialized() (bool, error)

IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.

Solidity: function isInitialized() view returns(bool)

func (*VaultV2CallerSession) IsLeverageEnabled

func (_VaultV2 *VaultV2CallerSession) IsLeverageEnabled() (bool, error)

IsLeverageEnabled is a free data retrieval call binding the contract method 0x3e72a262.

Solidity: function isLeverageEnabled() view returns(bool)

func (*VaultV2CallerSession) IsLiquidator

func (_VaultV2 *VaultV2CallerSession) IsLiquidator(arg0 common.Address) (bool, error)

IsLiquidator is a free data retrieval call binding the contract method 0x529a356f.

Solidity: function isLiquidator(address ) view returns(bool)

func (*VaultV2CallerSession) IsManager

func (_VaultV2 *VaultV2CallerSession) IsManager(arg0 common.Address) (bool, error)

IsManager is a free data retrieval call binding the contract method 0xf3ae2415.

Solidity: function isManager(address ) view returns(bool)

func (*VaultV2CallerSession) IsSwapEnabled

func (_VaultV2 *VaultV2CallerSession) IsSwapEnabled() (bool, error)

IsSwapEnabled is a free data retrieval call binding the contract method 0x351a964d.

Solidity: function isSwapEnabled() view returns(bool)

func (*VaultV2CallerSession) LastFundingTimes

func (_VaultV2 *VaultV2CallerSession) LastFundingTimes(arg0 common.Address) (*big.Int, error)

LastFundingTimes is a free data retrieval call binding the contract method 0xd8f897c3.

Solidity: function lastFundingTimes(address ) view returns(uint256)

func (*VaultV2CallerSession) LiquidationFeeUsd

func (_VaultV2 *VaultV2CallerSession) LiquidationFeeUsd() (*big.Int, error)

LiquidationFeeUsd is a free data retrieval call binding the contract method 0x174d2694.

Solidity: function liquidationFeeUsd() view returns(uint256)

func (*VaultV2CallerSession) MAXFEEBASISPOINTS

func (_VaultV2 *VaultV2CallerSession) MAXFEEBASISPOINTS() (*big.Int, error)

MAXFEEBASISPOINTS is a free data retrieval call binding the contract method 0x4befe2ca.

Solidity: function MAX_FEE_BASIS_POINTS() view returns(uint256)

func (*VaultV2CallerSession) MAXFUNDINGRATEFACTOR

func (_VaultV2 *VaultV2CallerSession) MAXFUNDINGRATEFACTOR() (*big.Int, error)

MAXFUNDINGRATEFACTOR is a free data retrieval call binding the contract method 0x8a39735a.

Solidity: function MAX_FUNDING_RATE_FACTOR() view returns(uint256)

func (*VaultV2CallerSession) MAXLIQUIDATIONFEEUSD

func (_VaultV2 *VaultV2CallerSession) MAXLIQUIDATIONFEEUSD() (*big.Int, error)

MAXLIQUIDATIONFEEUSD is a free data retrieval call binding the contract method 0x07c58752.

Solidity: function MAX_LIQUIDATION_FEE_USD() view returns(uint256)

func (*VaultV2CallerSession) MINFUNDINGRATEINTERVAL

func (_VaultV2 *VaultV2CallerSession) MINFUNDINGRATEINTERVAL() (*big.Int, error)

MINFUNDINGRATEINTERVAL is a free data retrieval call binding the contract method 0xfce28c10.

Solidity: function MIN_FUNDING_RATE_INTERVAL() view returns(uint256)

func (*VaultV2CallerSession) MINLEVERAGE

func (_VaultV2 *VaultV2CallerSession) MINLEVERAGE() (*big.Int, error)

MINLEVERAGE is a free data retrieval call binding the contract method 0x34c1557d.

Solidity: function MIN_LEVERAGE() view returns(uint256)

func (*VaultV2CallerSession) MarginFeeBasisPoints

func (_VaultV2 *VaultV2CallerSession) MarginFeeBasisPoints() (*big.Int, error)

MarginFeeBasisPoints is a free data retrieval call binding the contract method 0x318bc689.

Solidity: function marginFeeBasisPoints() view returns(uint256)

func (*VaultV2CallerSession) MaxGasPrice

func (_VaultV2 *VaultV2CallerSession) MaxGasPrice() (*big.Int, error)

MaxGasPrice is a free data retrieval call binding the contract method 0x3de39c11.

Solidity: function maxGasPrice() view returns(uint256)

func (*VaultV2CallerSession) MaxGlobalShortSizes

func (_VaultV2 *VaultV2CallerSession) MaxGlobalShortSizes(arg0 common.Address) (*big.Int, error)

MaxGlobalShortSizes is a free data retrieval call binding the contract method 0x9698d25a.

Solidity: function maxGlobalShortSizes(address ) view returns(uint256)

func (*VaultV2CallerSession) MaxLeverage

func (_VaultV2 *VaultV2CallerSession) MaxLeverage() (*big.Int, error)

MaxLeverage is a free data retrieval call binding the contract method 0xae3302c2.

Solidity: function maxLeverage() view returns(uint256)

func (*VaultV2CallerSession) MaxUsdgAmounts

func (_VaultV2 *VaultV2CallerSession) MaxUsdgAmounts(arg0 common.Address) (*big.Int, error)

MaxUsdgAmounts is a free data retrieval call binding the contract method 0xad1e4f8d.

Solidity: function maxUsdgAmounts(address ) view returns(uint256)

func (*VaultV2CallerSession) MinProfitBasisPoints

func (_VaultV2 *VaultV2CallerSession) MinProfitBasisPoints(arg0 common.Address) (*big.Int, error)

MinProfitBasisPoints is a free data retrieval call binding the contract method 0x88b1fbdf.

Solidity: function minProfitBasisPoints(address ) view returns(uint256)

func (*VaultV2CallerSession) MinProfitTime

func (_VaultV2 *VaultV2CallerSession) MinProfitTime() (*big.Int, error)

MinProfitTime is a free data retrieval call binding the contract method 0xd9ac4225.

Solidity: function minProfitTime() view returns(uint256)

func (*VaultV2CallerSession) MintBurnFeeBasisPoints

func (_VaultV2 *VaultV2CallerSession) MintBurnFeeBasisPoints() (*big.Int, error)

MintBurnFeeBasisPoints is a free data retrieval call binding the contract method 0x4d47b304.

Solidity: function mintBurnFeeBasisPoints() view returns(uint256)

func (*VaultV2CallerSession) PRICEPRECISION

func (_VaultV2 *VaultV2CallerSession) PRICEPRECISION() (*big.Int, error)

PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.

Solidity: function PRICE_PRECISION() view returns(uint256)

func (*VaultV2CallerSession) PoolAmounts

func (_VaultV2 *VaultV2CallerSession) PoolAmounts(arg0 common.Address) (*big.Int, error)

PoolAmounts is a free data retrieval call binding the contract method 0x52f55eed.

Solidity: function poolAmounts(address ) view returns(uint256)

func (*VaultV2CallerSession) Positions

func (_VaultV2 *VaultV2CallerSession) Positions(arg0 [32]byte) (struct {
	Size              *big.Int
	Collateral        *big.Int
	AveragePrice      *big.Int
	EntryFundingRate  *big.Int
	ReserveAmount     *big.Int
	RealisedPnl       *big.Int
	LastIncreasedTime *big.Int
}, error)

Positions is a free data retrieval call binding the contract method 0x514ea4bf.

Solidity: function positions(bytes32 ) view returns(uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 lastIncreasedTime)

func (*VaultV2CallerSession) PriceFeed

func (_VaultV2 *VaultV2CallerSession) PriceFeed() (common.Address, error)

PriceFeed is a free data retrieval call binding the contract method 0x741bef1a.

Solidity: function priceFeed() view returns(address)

func (*VaultV2CallerSession) ReservedAmounts

func (_VaultV2 *VaultV2CallerSession) ReservedAmounts(arg0 common.Address) (*big.Int, error)

ReservedAmounts is a free data retrieval call binding the contract method 0xc3c7b9e9.

Solidity: function reservedAmounts(address ) view returns(uint256)

func (*VaultV2CallerSession) Router

func (_VaultV2 *VaultV2CallerSession) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*VaultV2CallerSession) ShortableTokens

func (_VaultV2 *VaultV2CallerSession) ShortableTokens(arg0 common.Address) (bool, error)

ShortableTokens is a free data retrieval call binding the contract method 0xdb3555fb.

Solidity: function shortableTokens(address ) view returns(bool)

func (*VaultV2CallerSession) StableFundingRateFactor

func (_VaultV2 *VaultV2CallerSession) StableFundingRateFactor() (*big.Int, error)

StableFundingRateFactor is a free data retrieval call binding the contract method 0x134ca63b.

Solidity: function stableFundingRateFactor() view returns(uint256)

func (*VaultV2CallerSession) StableSwapFeeBasisPoints

func (_VaultV2 *VaultV2CallerSession) StableSwapFeeBasisPoints() (*big.Int, error)

StableSwapFeeBasisPoints is a free data retrieval call binding the contract method 0xdf73a267.

Solidity: function stableSwapFeeBasisPoints() view returns(uint256)

func (*VaultV2CallerSession) StableTaxBasisPoints

func (_VaultV2 *VaultV2CallerSession) StableTaxBasisPoints() (*big.Int, error)

StableTaxBasisPoints is a free data retrieval call binding the contract method 0x10eb56c2.

Solidity: function stableTaxBasisPoints() view returns(uint256)

func (*VaultV2CallerSession) StableTokens

func (_VaultV2 *VaultV2CallerSession) StableTokens(arg0 common.Address) (bool, error)

StableTokens is a free data retrieval call binding the contract method 0x42b60b03.

Solidity: function stableTokens(address ) view returns(bool)

func (*VaultV2CallerSession) SwapFeeBasisPoints

func (_VaultV2 *VaultV2CallerSession) SwapFeeBasisPoints() (*big.Int, error)

SwapFeeBasisPoints is a free data retrieval call binding the contract method 0xa22f2392.

Solidity: function swapFeeBasisPoints() view returns(uint256)

func (*VaultV2CallerSession) TaxBasisPoints

func (_VaultV2 *VaultV2CallerSession) TaxBasisPoints() (*big.Int, error)

TaxBasisPoints is a free data retrieval call binding the contract method 0x7a210a2b.

Solidity: function taxBasisPoints() view returns(uint256)

func (*VaultV2CallerSession) TokenBalances

func (_VaultV2 *VaultV2CallerSession) TokenBalances(arg0 common.Address) (*big.Int, error)

TokenBalances is a free data retrieval call binding the contract method 0x523fba7f.

Solidity: function tokenBalances(address ) view returns(uint256)

func (*VaultV2CallerSession) TokenDecimals

func (_VaultV2 *VaultV2CallerSession) TokenDecimals(arg0 common.Address) (*big.Int, error)

TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.

Solidity: function tokenDecimals(address ) view returns(uint256)

func (*VaultV2CallerSession) TokenToUsdMin

func (_VaultV2 *VaultV2CallerSession) TokenToUsdMin(_token common.Address, _tokenAmount *big.Int) (*big.Int, error)

TokenToUsdMin is a free data retrieval call binding the contract method 0x0a48d5a9.

Solidity: function tokenToUsdMin(address _token, uint256 _tokenAmount) view returns(uint256)

func (*VaultV2CallerSession) TokenWeights

func (_VaultV2 *VaultV2CallerSession) TokenWeights(arg0 common.Address) (*big.Int, error)

TokenWeights is a free data retrieval call binding the contract method 0xab2f3ad4.

Solidity: function tokenWeights(address ) view returns(uint256)

func (*VaultV2CallerSession) TotalTokenWeights

func (_VaultV2 *VaultV2CallerSession) TotalTokenWeights() (*big.Int, error)

TotalTokenWeights is a free data retrieval call binding the contract method 0xdc8f5fac.

Solidity: function totalTokenWeights() view returns(uint256)

func (*VaultV2CallerSession) USDGDECIMALS

func (_VaultV2 *VaultV2CallerSession) USDGDECIMALS() (*big.Int, error)

USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.

Solidity: function USDG_DECIMALS() view returns(uint256)

func (*VaultV2CallerSession) UsdToToken

func (_VaultV2 *VaultV2CallerSession) UsdToToken(_token common.Address, _usdAmount *big.Int, _price *big.Int) (*big.Int, error)

UsdToToken is a free data retrieval call binding the contract method 0xfa12dbc0.

Solidity: function usdToToken(address _token, uint256 _usdAmount, uint256 _price) view returns(uint256)

func (*VaultV2CallerSession) UsdToTokenMax

func (_VaultV2 *VaultV2CallerSession) UsdToTokenMax(_token common.Address, _usdAmount *big.Int) (*big.Int, error)

UsdToTokenMax is a free data retrieval call binding the contract method 0xa42ab3d2.

Solidity: function usdToTokenMax(address _token, uint256 _usdAmount) view returns(uint256)

func (*VaultV2CallerSession) UsdToTokenMin

func (_VaultV2 *VaultV2CallerSession) UsdToTokenMin(_token common.Address, _usdAmount *big.Int) (*big.Int, error)

UsdToTokenMin is a free data retrieval call binding the contract method 0x9899cd02.

Solidity: function usdToTokenMin(address _token, uint256 _usdAmount) view returns(uint256)

func (*VaultV2CallerSession) Usdg

func (_VaultV2 *VaultV2CallerSession) Usdg() (common.Address, error)

Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.

Solidity: function usdg() view returns(address)

func (*VaultV2CallerSession) UsdgAmounts

func (_VaultV2 *VaultV2CallerSession) UsdgAmounts(arg0 common.Address) (*big.Int, error)

UsdgAmounts is a free data retrieval call binding the contract method 0x1aa4ace5.

Solidity: function usdgAmounts(address ) view returns(uint256)

func (*VaultV2CallerSession) UseSwapPricing

func (_VaultV2 *VaultV2CallerSession) UseSwapPricing() (bool, error)

UseSwapPricing is a free data retrieval call binding the contract method 0xb06423f3.

Solidity: function useSwapPricing() view returns(bool)

func (*VaultV2CallerSession) ValidateLiquidation

func (_VaultV2 *VaultV2CallerSession) ValidateLiquidation(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _raise bool) (*big.Int, *big.Int, error)

ValidateLiquidation is a free data retrieval call binding the contract method 0xd54d5a9f.

Solidity: function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) view returns(uint256, uint256)

func (*VaultV2CallerSession) VaultUtils

func (_VaultV2 *VaultV2CallerSession) VaultUtils() (common.Address, error)

VaultUtils is a free data retrieval call binding the contract method 0x6abbe0c8.

Solidity: function vaultUtils() view returns(address)

func (*VaultV2CallerSession) WhitelistedTokenCount

func (_VaultV2 *VaultV2CallerSession) WhitelistedTokenCount() (*big.Int, error)

WhitelistedTokenCount is a free data retrieval call binding the contract method 0x62287a32.

Solidity: function whitelistedTokenCount() view returns(uint256)

func (*VaultV2CallerSession) WhitelistedTokens

func (_VaultV2 *VaultV2CallerSession) WhitelistedTokens(arg0 common.Address) (bool, error)

WhitelistedTokens is a free data retrieval call binding the contract method 0xdaf9c210.

Solidity: function whitelistedTokens(address ) view returns(bool)

type VaultV2ClosePosition

type VaultV2ClosePosition struct {
	Key              [32]byte
	Size             *big.Int
	Collateral       *big.Int
	AveragePrice     *big.Int
	EntryFundingRate *big.Int
	ReserveAmount    *big.Int
	RealisedPnl      *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

VaultV2ClosePosition represents a ClosePosition event raised by the VaultV2 contract.

type VaultV2ClosePositionIterator

type VaultV2ClosePositionIterator struct {
	Event *VaultV2ClosePosition // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2ClosePositionIterator is returned from FilterClosePosition and is used to iterate over the raw logs and unpacked data for ClosePosition events raised by the VaultV2 contract.

func (*VaultV2ClosePositionIterator) Close

func (it *VaultV2ClosePositionIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2ClosePositionIterator) Error

func (it *VaultV2ClosePositionIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2ClosePositionIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2CollectMarginFees

type VaultV2CollectMarginFees struct {
	Token     common.Address
	FeeUsd    *big.Int
	FeeTokens *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

VaultV2CollectMarginFees represents a CollectMarginFees event raised by the VaultV2 contract.

type VaultV2CollectMarginFeesIterator

type VaultV2CollectMarginFeesIterator struct {
	Event *VaultV2CollectMarginFees // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2CollectMarginFeesIterator is returned from FilterCollectMarginFees and is used to iterate over the raw logs and unpacked data for CollectMarginFees events raised by the VaultV2 contract.

func (*VaultV2CollectMarginFeesIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2CollectMarginFeesIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2CollectMarginFeesIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2CollectSwapFees

type VaultV2CollectSwapFees struct {
	Token     common.Address
	FeeUsd    *big.Int
	FeeTokens *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

VaultV2CollectSwapFees represents a CollectSwapFees event raised by the VaultV2 contract.

type VaultV2CollectSwapFeesIterator

type VaultV2CollectSwapFeesIterator struct {
	Event *VaultV2CollectSwapFees // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2CollectSwapFeesIterator is returned from FilterCollectSwapFees and is used to iterate over the raw logs and unpacked data for CollectSwapFees events raised by the VaultV2 contract.

func (*VaultV2CollectSwapFeesIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2CollectSwapFeesIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2CollectSwapFeesIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2DecreaseGuaranteedUsd

type VaultV2DecreaseGuaranteedUsd struct {
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultV2DecreaseGuaranteedUsd represents a DecreaseGuaranteedUsd event raised by the VaultV2 contract.

type VaultV2DecreaseGuaranteedUsdIterator

type VaultV2DecreaseGuaranteedUsdIterator struct {
	Event *VaultV2DecreaseGuaranteedUsd // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2DecreaseGuaranteedUsdIterator is returned from FilterDecreaseGuaranteedUsd and is used to iterate over the raw logs and unpacked data for DecreaseGuaranteedUsd events raised by the VaultV2 contract.

func (*VaultV2DecreaseGuaranteedUsdIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2DecreaseGuaranteedUsdIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2DecreaseGuaranteedUsdIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2DecreasePoolAmount

type VaultV2DecreasePoolAmount struct {
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultV2DecreasePoolAmount represents a DecreasePoolAmount event raised by the VaultV2 contract.

type VaultV2DecreasePoolAmountIterator

type VaultV2DecreasePoolAmountIterator struct {
	Event *VaultV2DecreasePoolAmount // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2DecreasePoolAmountIterator is returned from FilterDecreasePoolAmount and is used to iterate over the raw logs and unpacked data for DecreasePoolAmount events raised by the VaultV2 contract.

func (*VaultV2DecreasePoolAmountIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2DecreasePoolAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2DecreasePoolAmountIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2DecreasePosition

type VaultV2DecreasePosition struct {
	Key             [32]byte
	Account         common.Address
	CollateralToken common.Address
	IndexToken      common.Address
	CollateralDelta *big.Int
	SizeDelta       *big.Int
	IsLong          bool
	Price           *big.Int
	Fee             *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

VaultV2DecreasePosition represents a DecreasePosition event raised by the VaultV2 contract.

type VaultV2DecreasePositionIterator

type VaultV2DecreasePositionIterator struct {
	Event *VaultV2DecreasePosition // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2DecreasePositionIterator is returned from FilterDecreasePosition and is used to iterate over the raw logs and unpacked data for DecreasePosition events raised by the VaultV2 contract.

func (*VaultV2DecreasePositionIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2DecreasePositionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2DecreasePositionIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2DecreaseReservedAmount

type VaultV2DecreaseReservedAmount struct {
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultV2DecreaseReservedAmount represents a DecreaseReservedAmount event raised by the VaultV2 contract.

type VaultV2DecreaseReservedAmountIterator

type VaultV2DecreaseReservedAmountIterator struct {
	Event *VaultV2DecreaseReservedAmount // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2DecreaseReservedAmountIterator is returned from FilterDecreaseReservedAmount and is used to iterate over the raw logs and unpacked data for DecreaseReservedAmount events raised by the VaultV2 contract.

func (*VaultV2DecreaseReservedAmountIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2DecreaseReservedAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2DecreaseReservedAmountIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2DecreaseUsdgAmount

type VaultV2DecreaseUsdgAmount struct {
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultV2DecreaseUsdgAmount represents a DecreaseUsdgAmount event raised by the VaultV2 contract.

type VaultV2DecreaseUsdgAmountIterator

type VaultV2DecreaseUsdgAmountIterator struct {
	Event *VaultV2DecreaseUsdgAmount // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2DecreaseUsdgAmountIterator is returned from FilterDecreaseUsdgAmount and is used to iterate over the raw logs and unpacked data for DecreaseUsdgAmount events raised by the VaultV2 contract.

func (*VaultV2DecreaseUsdgAmountIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2DecreaseUsdgAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2DecreaseUsdgAmountIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2DirectPoolDeposit

type VaultV2DirectPoolDeposit struct {
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultV2DirectPoolDeposit represents a DirectPoolDeposit event raised by the VaultV2 contract.

type VaultV2DirectPoolDepositIterator

type VaultV2DirectPoolDepositIterator struct {
	Event *VaultV2DirectPoolDeposit // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2DirectPoolDepositIterator is returned from FilterDirectPoolDeposit and is used to iterate over the raw logs and unpacked data for DirectPoolDeposit events raised by the VaultV2 contract.

func (*VaultV2DirectPoolDepositIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2DirectPoolDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2DirectPoolDepositIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2Filterer

type VaultV2Filterer struct {
	// contains filtered or unexported fields
}

VaultV2Filterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewVaultV2Filterer

func NewVaultV2Filterer(address common.Address, filterer bind.ContractFilterer) (*VaultV2Filterer, error)

NewVaultV2Filterer creates a new log filterer instance of VaultV2, bound to a specific deployed contract.

func (*VaultV2Filterer) FilterBuyUSDG

func (_VaultV2 *VaultV2Filterer) FilterBuyUSDG(opts *bind.FilterOpts) (*VaultV2BuyUSDGIterator, error)

FilterBuyUSDG is a free log retrieval operation binding the contract event 0xab4c77c74cd32c85f35416cf03e7ce9e2d4387f7b7f2c1f4bf53daaecf8ea72d.

Solidity: event BuyUSDG(address account, address token, uint256 tokenAmount, uint256 usdgAmount, uint256 feeBasisPoints)

func (*VaultV2Filterer) FilterClosePosition

func (_VaultV2 *VaultV2Filterer) FilterClosePosition(opts *bind.FilterOpts) (*VaultV2ClosePositionIterator, error)

FilterClosePosition is a free log retrieval operation binding the contract event 0x73af1d417d82c240fdb6d319b34ad884487c6bf2845d98980cc52ad9171cb455.

Solidity: event ClosePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl)

func (*VaultV2Filterer) FilterCollectMarginFees

func (_VaultV2 *VaultV2Filterer) FilterCollectMarginFees(opts *bind.FilterOpts) (*VaultV2CollectMarginFeesIterator, error)

FilterCollectMarginFees is a free log retrieval operation binding the contract event 0x5d0c0019d3d45fadeb74eff9d2c9924d146d000ac6bcf3c28bf0ac3c9baa011a.

Solidity: event CollectMarginFees(address token, uint256 feeUsd, uint256 feeTokens)

func (*VaultV2Filterer) FilterCollectSwapFees

func (_VaultV2 *VaultV2Filterer) FilterCollectSwapFees(opts *bind.FilterOpts) (*VaultV2CollectSwapFeesIterator, error)

FilterCollectSwapFees is a free log retrieval operation binding the contract event 0x47cd9dda0e50ce30bcaaacd0488452b596221c07ac402a581cfae4d3933cac2b.

Solidity: event CollectSwapFees(address token, uint256 feeUsd, uint256 feeTokens)

func (*VaultV2Filterer) FilterDecreaseGuaranteedUsd

func (_VaultV2 *VaultV2Filterer) FilterDecreaseGuaranteedUsd(opts *bind.FilterOpts) (*VaultV2DecreaseGuaranteedUsdIterator, error)

FilterDecreaseGuaranteedUsd is a free log retrieval operation binding the contract event 0x34e07158b9db50df5613e591c44ea2ebc82834eff4a4dc3a46e000e608261d68.

Solidity: event DecreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2Filterer) FilterDecreasePoolAmount

func (_VaultV2 *VaultV2Filterer) FilterDecreasePoolAmount(opts *bind.FilterOpts) (*VaultV2DecreasePoolAmountIterator, error)

FilterDecreasePoolAmount is a free log retrieval operation binding the contract event 0x112726233fbeaeed0f5b1dba5cb0b2b81883dee49fb35ff99fd98ed9f6d31eb0.

Solidity: event DecreasePoolAmount(address token, uint256 amount)

func (*VaultV2Filterer) FilterDecreasePosition

func (_VaultV2 *VaultV2Filterer) FilterDecreasePosition(opts *bind.FilterOpts) (*VaultV2DecreasePositionIterator, error)

FilterDecreasePosition is a free log retrieval operation binding the contract event 0x93d75d64d1f84fc6f430a64fc578bdd4c1e090e90ea2d51773e626d19de56d30.

Solidity: event DecreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)

func (*VaultV2Filterer) FilterDecreaseReservedAmount

func (_VaultV2 *VaultV2Filterer) FilterDecreaseReservedAmount(opts *bind.FilterOpts) (*VaultV2DecreaseReservedAmountIterator, error)

FilterDecreaseReservedAmount is a free log retrieval operation binding the contract event 0x533cb5ed32be6a90284e96b5747a1bfc2d38fdb5768a6b5f67ff7d62144ed67b.

Solidity: event DecreaseReservedAmount(address token, uint256 amount)

func (*VaultV2Filterer) FilterDecreaseUsdgAmount

func (_VaultV2 *VaultV2Filterer) FilterDecreaseUsdgAmount(opts *bind.FilterOpts) (*VaultV2DecreaseUsdgAmountIterator, error)

FilterDecreaseUsdgAmount is a free log retrieval operation binding the contract event 0xe1e812596aac93a06ecc4ca627014d18e30f5c33b825160cc9d5c0ba61e45227.

Solidity: event DecreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2Filterer) FilterDirectPoolDeposit

func (_VaultV2 *VaultV2Filterer) FilterDirectPoolDeposit(opts *bind.FilterOpts) (*VaultV2DirectPoolDepositIterator, error)

FilterDirectPoolDeposit is a free log retrieval operation binding the contract event 0xa5a389190ebf6170a133bda5c769b77f4d6715b8aa172ec0ddf8473d0b4944bd.

Solidity: event DirectPoolDeposit(address token, uint256 amount)

func (*VaultV2Filterer) FilterIncreaseGuaranteedUsd

func (_VaultV2 *VaultV2Filterer) FilterIncreaseGuaranteedUsd(opts *bind.FilterOpts) (*VaultV2IncreaseGuaranteedUsdIterator, error)

FilterIncreaseGuaranteedUsd is a free log retrieval operation binding the contract event 0xd9d4761f75e0d0103b5cbeab941eeb443d7a56a35b5baf2a0787c03f03f4e474.

Solidity: event IncreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2Filterer) FilterIncreasePoolAmount

func (_VaultV2 *VaultV2Filterer) FilterIncreasePoolAmount(opts *bind.FilterOpts) (*VaultV2IncreasePoolAmountIterator, error)

FilterIncreasePoolAmount is a free log retrieval operation binding the contract event 0x976177fbe09a15e5e43f848844963a42b41ef919ef17ff21a17a5421de8f4737.

Solidity: event IncreasePoolAmount(address token, uint256 amount)

func (*VaultV2Filterer) FilterIncreasePosition

func (_VaultV2 *VaultV2Filterer) FilterIncreasePosition(opts *bind.FilterOpts) (*VaultV2IncreasePositionIterator, error)

FilterIncreasePosition is a free log retrieval operation binding the contract event 0x2fe68525253654c21998f35787a8d0f361905ef647c854092430ab65f2f15022.

Solidity: event IncreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)

func (*VaultV2Filterer) FilterIncreaseReservedAmount

func (_VaultV2 *VaultV2Filterer) FilterIncreaseReservedAmount(opts *bind.FilterOpts) (*VaultV2IncreaseReservedAmountIterator, error)

FilterIncreaseReservedAmount is a free log retrieval operation binding the contract event 0xaa5649d82f5462be9d19b0f2b31a59b2259950a6076550bac9f3a1c07db9f66d.

Solidity: event IncreaseReservedAmount(address token, uint256 amount)

func (*VaultV2Filterer) FilterIncreaseUsdgAmount

func (_VaultV2 *VaultV2Filterer) FilterIncreaseUsdgAmount(opts *bind.FilterOpts) (*VaultV2IncreaseUsdgAmountIterator, error)

FilterIncreaseUsdgAmount is a free log retrieval operation binding the contract event 0x64243679a443432e2293343b77d411ff6144370404618f00ca0d2025d9ca9882.

Solidity: event IncreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2Filterer) FilterLiquidatePosition

func (_VaultV2 *VaultV2Filterer) FilterLiquidatePosition(opts *bind.FilterOpts) (*VaultV2LiquidatePositionIterator, error)

FilterLiquidatePosition is a free log retrieval operation binding the contract event 0x2e1f85a64a2f22cf2f0c42584e7c919ed4abe8d53675cff0f62bf1e95a1c676f.

Solidity: event LiquidatePosition(bytes32 key, address account, address collateralToken, address indexToken, bool isLong, uint256 size, uint256 collateral, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)

func (*VaultV2Filterer) FilterSellUSDG

func (_VaultV2 *VaultV2Filterer) FilterSellUSDG(opts *bind.FilterOpts) (*VaultV2SellUSDGIterator, error)

FilterSellUSDG is a free log retrieval operation binding the contract event 0xd732b7828fa6cee72c285eac756fc66a7477e3dc22e22e7c432f1c265d40b483.

Solidity: event SellUSDG(address account, address token, uint256 usdgAmount, uint256 tokenAmount, uint256 feeBasisPoints)

func (*VaultV2Filterer) FilterSwap

func (_VaultV2 *VaultV2Filterer) FilterSwap(opts *bind.FilterOpts) (*VaultV2SwapIterator, error)

FilterSwap is a free log retrieval operation binding the contract event 0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db.

Solidity: event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 amountOutAfterFees, uint256 feeBasisPoints)

func (*VaultV2Filterer) FilterUpdateFundingRate

func (_VaultV2 *VaultV2Filterer) FilterUpdateFundingRate(opts *bind.FilterOpts) (*VaultV2UpdateFundingRateIterator, error)

FilterUpdateFundingRate is a free log retrieval operation binding the contract event 0xa146fc154e1913322e9817d49f0d5c37466c24326e15de10e739a948be815eab.

Solidity: event UpdateFundingRate(address token, uint256 fundingRate)

func (*VaultV2Filterer) FilterUpdatePnl

func (_VaultV2 *VaultV2Filterer) FilterUpdatePnl(opts *bind.FilterOpts) (*VaultV2UpdatePnlIterator, error)

FilterUpdatePnl is a free log retrieval operation binding the contract event 0x3ff41bdde87755b687ae83d0221a232b6be51a803330ed9661c1b5d0105e0d8a.

Solidity: event UpdatePnl(bytes32 key, bool hasProfit, uint256 delta)

func (*VaultV2Filterer) FilterUpdatePosition

func (_VaultV2 *VaultV2Filterer) FilterUpdatePosition(opts *bind.FilterOpts) (*VaultV2UpdatePositionIterator, error)

FilterUpdatePosition is a free log retrieval operation binding the contract event 0x20853733b590dce729d9f4628682ebd9a34d2354e72679e66f43a008fc03b773.

Solidity: event UpdatePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)

func (*VaultV2Filterer) ParseBuyUSDG

func (_VaultV2 *VaultV2Filterer) ParseBuyUSDG(log types.Log) (*VaultV2BuyUSDG, error)

ParseBuyUSDG is a log parse operation binding the contract event 0xab4c77c74cd32c85f35416cf03e7ce9e2d4387f7b7f2c1f4bf53daaecf8ea72d.

Solidity: event BuyUSDG(address account, address token, uint256 tokenAmount, uint256 usdgAmount, uint256 feeBasisPoints)

func (*VaultV2Filterer) ParseClosePosition

func (_VaultV2 *VaultV2Filterer) ParseClosePosition(log types.Log) (*VaultV2ClosePosition, error)

ParseClosePosition is a log parse operation binding the contract event 0x73af1d417d82c240fdb6d319b34ad884487c6bf2845d98980cc52ad9171cb455.

Solidity: event ClosePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl)

func (*VaultV2Filterer) ParseCollectMarginFees

func (_VaultV2 *VaultV2Filterer) ParseCollectMarginFees(log types.Log) (*VaultV2CollectMarginFees, error)

ParseCollectMarginFees is a log parse operation binding the contract event 0x5d0c0019d3d45fadeb74eff9d2c9924d146d000ac6bcf3c28bf0ac3c9baa011a.

Solidity: event CollectMarginFees(address token, uint256 feeUsd, uint256 feeTokens)

func (*VaultV2Filterer) ParseCollectSwapFees

func (_VaultV2 *VaultV2Filterer) ParseCollectSwapFees(log types.Log) (*VaultV2CollectSwapFees, error)

ParseCollectSwapFees is a log parse operation binding the contract event 0x47cd9dda0e50ce30bcaaacd0488452b596221c07ac402a581cfae4d3933cac2b.

Solidity: event CollectSwapFees(address token, uint256 feeUsd, uint256 feeTokens)

func (*VaultV2Filterer) ParseDecreaseGuaranteedUsd

func (_VaultV2 *VaultV2Filterer) ParseDecreaseGuaranteedUsd(log types.Log) (*VaultV2DecreaseGuaranteedUsd, error)

ParseDecreaseGuaranteedUsd is a log parse operation binding the contract event 0x34e07158b9db50df5613e591c44ea2ebc82834eff4a4dc3a46e000e608261d68.

Solidity: event DecreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2Filterer) ParseDecreasePoolAmount

func (_VaultV2 *VaultV2Filterer) ParseDecreasePoolAmount(log types.Log) (*VaultV2DecreasePoolAmount, error)

ParseDecreasePoolAmount is a log parse operation binding the contract event 0x112726233fbeaeed0f5b1dba5cb0b2b81883dee49fb35ff99fd98ed9f6d31eb0.

Solidity: event DecreasePoolAmount(address token, uint256 amount)

func (*VaultV2Filterer) ParseDecreasePosition

func (_VaultV2 *VaultV2Filterer) ParseDecreasePosition(log types.Log) (*VaultV2DecreasePosition, error)

ParseDecreasePosition is a log parse operation binding the contract event 0x93d75d64d1f84fc6f430a64fc578bdd4c1e090e90ea2d51773e626d19de56d30.

Solidity: event DecreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)

func (*VaultV2Filterer) ParseDecreaseReservedAmount

func (_VaultV2 *VaultV2Filterer) ParseDecreaseReservedAmount(log types.Log) (*VaultV2DecreaseReservedAmount, error)

ParseDecreaseReservedAmount is a log parse operation binding the contract event 0x533cb5ed32be6a90284e96b5747a1bfc2d38fdb5768a6b5f67ff7d62144ed67b.

Solidity: event DecreaseReservedAmount(address token, uint256 amount)

func (*VaultV2Filterer) ParseDecreaseUsdgAmount

func (_VaultV2 *VaultV2Filterer) ParseDecreaseUsdgAmount(log types.Log) (*VaultV2DecreaseUsdgAmount, error)

ParseDecreaseUsdgAmount is a log parse operation binding the contract event 0xe1e812596aac93a06ecc4ca627014d18e30f5c33b825160cc9d5c0ba61e45227.

Solidity: event DecreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2Filterer) ParseDirectPoolDeposit

func (_VaultV2 *VaultV2Filterer) ParseDirectPoolDeposit(log types.Log) (*VaultV2DirectPoolDeposit, error)

ParseDirectPoolDeposit is a log parse operation binding the contract event 0xa5a389190ebf6170a133bda5c769b77f4d6715b8aa172ec0ddf8473d0b4944bd.

Solidity: event DirectPoolDeposit(address token, uint256 amount)

func (*VaultV2Filterer) ParseIncreaseGuaranteedUsd

func (_VaultV2 *VaultV2Filterer) ParseIncreaseGuaranteedUsd(log types.Log) (*VaultV2IncreaseGuaranteedUsd, error)

ParseIncreaseGuaranteedUsd is a log parse operation binding the contract event 0xd9d4761f75e0d0103b5cbeab941eeb443d7a56a35b5baf2a0787c03f03f4e474.

Solidity: event IncreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2Filterer) ParseIncreasePoolAmount

func (_VaultV2 *VaultV2Filterer) ParseIncreasePoolAmount(log types.Log) (*VaultV2IncreasePoolAmount, error)

ParseIncreasePoolAmount is a log parse operation binding the contract event 0x976177fbe09a15e5e43f848844963a42b41ef919ef17ff21a17a5421de8f4737.

Solidity: event IncreasePoolAmount(address token, uint256 amount)

func (*VaultV2Filterer) ParseIncreasePosition

func (_VaultV2 *VaultV2Filterer) ParseIncreasePosition(log types.Log) (*VaultV2IncreasePosition, error)

ParseIncreasePosition is a log parse operation binding the contract event 0x2fe68525253654c21998f35787a8d0f361905ef647c854092430ab65f2f15022.

Solidity: event IncreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)

func (*VaultV2Filterer) ParseIncreaseReservedAmount

func (_VaultV2 *VaultV2Filterer) ParseIncreaseReservedAmount(log types.Log) (*VaultV2IncreaseReservedAmount, error)

ParseIncreaseReservedAmount is a log parse operation binding the contract event 0xaa5649d82f5462be9d19b0f2b31a59b2259950a6076550bac9f3a1c07db9f66d.

Solidity: event IncreaseReservedAmount(address token, uint256 amount)

func (*VaultV2Filterer) ParseIncreaseUsdgAmount

func (_VaultV2 *VaultV2Filterer) ParseIncreaseUsdgAmount(log types.Log) (*VaultV2IncreaseUsdgAmount, error)

ParseIncreaseUsdgAmount is a log parse operation binding the contract event 0x64243679a443432e2293343b77d411ff6144370404618f00ca0d2025d9ca9882.

Solidity: event IncreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2Filterer) ParseLiquidatePosition

func (_VaultV2 *VaultV2Filterer) ParseLiquidatePosition(log types.Log) (*VaultV2LiquidatePosition, error)

ParseLiquidatePosition is a log parse operation binding the contract event 0x2e1f85a64a2f22cf2f0c42584e7c919ed4abe8d53675cff0f62bf1e95a1c676f.

Solidity: event LiquidatePosition(bytes32 key, address account, address collateralToken, address indexToken, bool isLong, uint256 size, uint256 collateral, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)

func (*VaultV2Filterer) ParseSellUSDG

func (_VaultV2 *VaultV2Filterer) ParseSellUSDG(log types.Log) (*VaultV2SellUSDG, error)

ParseSellUSDG is a log parse operation binding the contract event 0xd732b7828fa6cee72c285eac756fc66a7477e3dc22e22e7c432f1c265d40b483.

Solidity: event SellUSDG(address account, address token, uint256 usdgAmount, uint256 tokenAmount, uint256 feeBasisPoints)

func (*VaultV2Filterer) ParseSwap

func (_VaultV2 *VaultV2Filterer) ParseSwap(log types.Log) (*VaultV2Swap, error)

ParseSwap is a log parse operation binding the contract event 0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db.

Solidity: event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 amountOutAfterFees, uint256 feeBasisPoints)

func (*VaultV2Filterer) ParseUpdateFundingRate

func (_VaultV2 *VaultV2Filterer) ParseUpdateFundingRate(log types.Log) (*VaultV2UpdateFundingRate, error)

ParseUpdateFundingRate is a log parse operation binding the contract event 0xa146fc154e1913322e9817d49f0d5c37466c24326e15de10e739a948be815eab.

Solidity: event UpdateFundingRate(address token, uint256 fundingRate)

func (*VaultV2Filterer) ParseUpdatePnl

func (_VaultV2 *VaultV2Filterer) ParseUpdatePnl(log types.Log) (*VaultV2UpdatePnl, error)

ParseUpdatePnl is a log parse operation binding the contract event 0x3ff41bdde87755b687ae83d0221a232b6be51a803330ed9661c1b5d0105e0d8a.

Solidity: event UpdatePnl(bytes32 key, bool hasProfit, uint256 delta)

func (*VaultV2Filterer) ParseUpdatePosition

func (_VaultV2 *VaultV2Filterer) ParseUpdatePosition(log types.Log) (*VaultV2UpdatePosition, error)

ParseUpdatePosition is a log parse operation binding the contract event 0x20853733b590dce729d9f4628682ebd9a34d2354e72679e66f43a008fc03b773.

Solidity: event UpdatePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)

func (*VaultV2Filterer) WatchBuyUSDG

func (_VaultV2 *VaultV2Filterer) WatchBuyUSDG(opts *bind.WatchOpts, sink chan<- *VaultV2BuyUSDG) (event.Subscription, error)

WatchBuyUSDG is a free log subscription operation binding the contract event 0xab4c77c74cd32c85f35416cf03e7ce9e2d4387f7b7f2c1f4bf53daaecf8ea72d.

Solidity: event BuyUSDG(address account, address token, uint256 tokenAmount, uint256 usdgAmount, uint256 feeBasisPoints)

func (*VaultV2Filterer) WatchClosePosition

func (_VaultV2 *VaultV2Filterer) WatchClosePosition(opts *bind.WatchOpts, sink chan<- *VaultV2ClosePosition) (event.Subscription, error)

WatchClosePosition is a free log subscription operation binding the contract event 0x73af1d417d82c240fdb6d319b34ad884487c6bf2845d98980cc52ad9171cb455.

Solidity: event ClosePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl)

func (*VaultV2Filterer) WatchCollectMarginFees

func (_VaultV2 *VaultV2Filterer) WatchCollectMarginFees(opts *bind.WatchOpts, sink chan<- *VaultV2CollectMarginFees) (event.Subscription, error)

WatchCollectMarginFees is a free log subscription operation binding the contract event 0x5d0c0019d3d45fadeb74eff9d2c9924d146d000ac6bcf3c28bf0ac3c9baa011a.

Solidity: event CollectMarginFees(address token, uint256 feeUsd, uint256 feeTokens)

func (*VaultV2Filterer) WatchCollectSwapFees

func (_VaultV2 *VaultV2Filterer) WatchCollectSwapFees(opts *bind.WatchOpts, sink chan<- *VaultV2CollectSwapFees) (event.Subscription, error)

WatchCollectSwapFees is a free log subscription operation binding the contract event 0x47cd9dda0e50ce30bcaaacd0488452b596221c07ac402a581cfae4d3933cac2b.

Solidity: event CollectSwapFees(address token, uint256 feeUsd, uint256 feeTokens)

func (*VaultV2Filterer) WatchDecreaseGuaranteedUsd

func (_VaultV2 *VaultV2Filterer) WatchDecreaseGuaranteedUsd(opts *bind.WatchOpts, sink chan<- *VaultV2DecreaseGuaranteedUsd) (event.Subscription, error)

WatchDecreaseGuaranteedUsd is a free log subscription operation binding the contract event 0x34e07158b9db50df5613e591c44ea2ebc82834eff4a4dc3a46e000e608261d68.

Solidity: event DecreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2Filterer) WatchDecreasePoolAmount

func (_VaultV2 *VaultV2Filterer) WatchDecreasePoolAmount(opts *bind.WatchOpts, sink chan<- *VaultV2DecreasePoolAmount) (event.Subscription, error)

WatchDecreasePoolAmount is a free log subscription operation binding the contract event 0x112726233fbeaeed0f5b1dba5cb0b2b81883dee49fb35ff99fd98ed9f6d31eb0.

Solidity: event DecreasePoolAmount(address token, uint256 amount)

func (*VaultV2Filterer) WatchDecreasePosition

func (_VaultV2 *VaultV2Filterer) WatchDecreasePosition(opts *bind.WatchOpts, sink chan<- *VaultV2DecreasePosition) (event.Subscription, error)

WatchDecreasePosition is a free log subscription operation binding the contract event 0x93d75d64d1f84fc6f430a64fc578bdd4c1e090e90ea2d51773e626d19de56d30.

Solidity: event DecreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)

func (*VaultV2Filterer) WatchDecreaseReservedAmount

func (_VaultV2 *VaultV2Filterer) WatchDecreaseReservedAmount(opts *bind.WatchOpts, sink chan<- *VaultV2DecreaseReservedAmount) (event.Subscription, error)

WatchDecreaseReservedAmount is a free log subscription operation binding the contract event 0x533cb5ed32be6a90284e96b5747a1bfc2d38fdb5768a6b5f67ff7d62144ed67b.

Solidity: event DecreaseReservedAmount(address token, uint256 amount)

func (*VaultV2Filterer) WatchDecreaseUsdgAmount

func (_VaultV2 *VaultV2Filterer) WatchDecreaseUsdgAmount(opts *bind.WatchOpts, sink chan<- *VaultV2DecreaseUsdgAmount) (event.Subscription, error)

WatchDecreaseUsdgAmount is a free log subscription operation binding the contract event 0xe1e812596aac93a06ecc4ca627014d18e30f5c33b825160cc9d5c0ba61e45227.

Solidity: event DecreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2Filterer) WatchDirectPoolDeposit

func (_VaultV2 *VaultV2Filterer) WatchDirectPoolDeposit(opts *bind.WatchOpts, sink chan<- *VaultV2DirectPoolDeposit) (event.Subscription, error)

WatchDirectPoolDeposit is a free log subscription operation binding the contract event 0xa5a389190ebf6170a133bda5c769b77f4d6715b8aa172ec0ddf8473d0b4944bd.

Solidity: event DirectPoolDeposit(address token, uint256 amount)

func (*VaultV2Filterer) WatchIncreaseGuaranteedUsd

func (_VaultV2 *VaultV2Filterer) WatchIncreaseGuaranteedUsd(opts *bind.WatchOpts, sink chan<- *VaultV2IncreaseGuaranteedUsd) (event.Subscription, error)

WatchIncreaseGuaranteedUsd is a free log subscription operation binding the contract event 0xd9d4761f75e0d0103b5cbeab941eeb443d7a56a35b5baf2a0787c03f03f4e474.

Solidity: event IncreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2Filterer) WatchIncreasePoolAmount

func (_VaultV2 *VaultV2Filterer) WatchIncreasePoolAmount(opts *bind.WatchOpts, sink chan<- *VaultV2IncreasePoolAmount) (event.Subscription, error)

WatchIncreasePoolAmount is a free log subscription operation binding the contract event 0x976177fbe09a15e5e43f848844963a42b41ef919ef17ff21a17a5421de8f4737.

Solidity: event IncreasePoolAmount(address token, uint256 amount)

func (*VaultV2Filterer) WatchIncreasePosition

func (_VaultV2 *VaultV2Filterer) WatchIncreasePosition(opts *bind.WatchOpts, sink chan<- *VaultV2IncreasePosition) (event.Subscription, error)

WatchIncreasePosition is a free log subscription operation binding the contract event 0x2fe68525253654c21998f35787a8d0f361905ef647c854092430ab65f2f15022.

Solidity: event IncreasePosition(bytes32 key, address account, address collateralToken, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, uint256 price, uint256 fee)

func (*VaultV2Filterer) WatchIncreaseReservedAmount

func (_VaultV2 *VaultV2Filterer) WatchIncreaseReservedAmount(opts *bind.WatchOpts, sink chan<- *VaultV2IncreaseReservedAmount) (event.Subscription, error)

WatchIncreaseReservedAmount is a free log subscription operation binding the contract event 0xaa5649d82f5462be9d19b0f2b31a59b2259950a6076550bac9f3a1c07db9f66d.

Solidity: event IncreaseReservedAmount(address token, uint256 amount)

func (*VaultV2Filterer) WatchIncreaseUsdgAmount

func (_VaultV2 *VaultV2Filterer) WatchIncreaseUsdgAmount(opts *bind.WatchOpts, sink chan<- *VaultV2IncreaseUsdgAmount) (event.Subscription, error)

WatchIncreaseUsdgAmount is a free log subscription operation binding the contract event 0x64243679a443432e2293343b77d411ff6144370404618f00ca0d2025d9ca9882.

Solidity: event IncreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2Filterer) WatchLiquidatePosition

func (_VaultV2 *VaultV2Filterer) WatchLiquidatePosition(opts *bind.WatchOpts, sink chan<- *VaultV2LiquidatePosition) (event.Subscription, error)

WatchLiquidatePosition is a free log subscription operation binding the contract event 0x2e1f85a64a2f22cf2f0c42584e7c919ed4abe8d53675cff0f62bf1e95a1c676f.

Solidity: event LiquidatePosition(bytes32 key, address account, address collateralToken, address indexToken, bool isLong, uint256 size, uint256 collateral, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)

func (*VaultV2Filterer) WatchSellUSDG

func (_VaultV2 *VaultV2Filterer) WatchSellUSDG(opts *bind.WatchOpts, sink chan<- *VaultV2SellUSDG) (event.Subscription, error)

WatchSellUSDG is a free log subscription operation binding the contract event 0xd732b7828fa6cee72c285eac756fc66a7477e3dc22e22e7c432f1c265d40b483.

Solidity: event SellUSDG(address account, address token, uint256 usdgAmount, uint256 tokenAmount, uint256 feeBasisPoints)

func (*VaultV2Filterer) WatchSwap

func (_VaultV2 *VaultV2Filterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *VaultV2Swap) (event.Subscription, error)

WatchSwap is a free log subscription operation binding the contract event 0x0874b2d545cb271cdbda4e093020c452328b24af12382ed62c4d00f5c26709db.

Solidity: event Swap(address account, address tokenIn, address tokenOut, uint256 amountIn, uint256 amountOut, uint256 amountOutAfterFees, uint256 feeBasisPoints)

func (*VaultV2Filterer) WatchUpdateFundingRate

func (_VaultV2 *VaultV2Filterer) WatchUpdateFundingRate(opts *bind.WatchOpts, sink chan<- *VaultV2UpdateFundingRate) (event.Subscription, error)

WatchUpdateFundingRate is a free log subscription operation binding the contract event 0xa146fc154e1913322e9817d49f0d5c37466c24326e15de10e739a948be815eab.

Solidity: event UpdateFundingRate(address token, uint256 fundingRate)

func (*VaultV2Filterer) WatchUpdatePnl

func (_VaultV2 *VaultV2Filterer) WatchUpdatePnl(opts *bind.WatchOpts, sink chan<- *VaultV2UpdatePnl) (event.Subscription, error)

WatchUpdatePnl is a free log subscription operation binding the contract event 0x3ff41bdde87755b687ae83d0221a232b6be51a803330ed9661c1b5d0105e0d8a.

Solidity: event UpdatePnl(bytes32 key, bool hasProfit, uint256 delta)

func (*VaultV2Filterer) WatchUpdatePosition

func (_VaultV2 *VaultV2Filterer) WatchUpdatePosition(opts *bind.WatchOpts, sink chan<- *VaultV2UpdatePosition) (event.Subscription, error)

WatchUpdatePosition is a free log subscription operation binding the contract event 0x20853733b590dce729d9f4628682ebd9a34d2354e72679e66f43a008fc03b773.

Solidity: event UpdatePosition(bytes32 key, uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 markPrice)

type VaultV2IncreaseGuaranteedUsd

type VaultV2IncreaseGuaranteedUsd struct {
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultV2IncreaseGuaranteedUsd represents a IncreaseGuaranteedUsd event raised by the VaultV2 contract.

type VaultV2IncreaseGuaranteedUsdIterator

type VaultV2IncreaseGuaranteedUsdIterator struct {
	Event *VaultV2IncreaseGuaranteedUsd // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2IncreaseGuaranteedUsdIterator is returned from FilterIncreaseGuaranteedUsd and is used to iterate over the raw logs and unpacked data for IncreaseGuaranteedUsd events raised by the VaultV2 contract.

func (*VaultV2IncreaseGuaranteedUsdIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2IncreaseGuaranteedUsdIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2IncreaseGuaranteedUsdIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2IncreasePoolAmount

type VaultV2IncreasePoolAmount struct {
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultV2IncreasePoolAmount represents a IncreasePoolAmount event raised by the VaultV2 contract.

type VaultV2IncreasePoolAmountIterator

type VaultV2IncreasePoolAmountIterator struct {
	Event *VaultV2IncreasePoolAmount // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2IncreasePoolAmountIterator is returned from FilterIncreasePoolAmount and is used to iterate over the raw logs and unpacked data for IncreasePoolAmount events raised by the VaultV2 contract.

func (*VaultV2IncreasePoolAmountIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2IncreasePoolAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2IncreasePoolAmountIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2IncreasePosition

type VaultV2IncreasePosition struct {
	Key             [32]byte
	Account         common.Address
	CollateralToken common.Address
	IndexToken      common.Address
	CollateralDelta *big.Int
	SizeDelta       *big.Int
	IsLong          bool
	Price           *big.Int
	Fee             *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

VaultV2IncreasePosition represents a IncreasePosition event raised by the VaultV2 contract.

type VaultV2IncreasePositionIterator

type VaultV2IncreasePositionIterator struct {
	Event *VaultV2IncreasePosition // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2IncreasePositionIterator is returned from FilterIncreasePosition and is used to iterate over the raw logs and unpacked data for IncreasePosition events raised by the VaultV2 contract.

func (*VaultV2IncreasePositionIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2IncreasePositionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2IncreasePositionIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2IncreaseReservedAmount

type VaultV2IncreaseReservedAmount struct {
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultV2IncreaseReservedAmount represents a IncreaseReservedAmount event raised by the VaultV2 contract.

type VaultV2IncreaseReservedAmountIterator

type VaultV2IncreaseReservedAmountIterator struct {
	Event *VaultV2IncreaseReservedAmount // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2IncreaseReservedAmountIterator is returned from FilterIncreaseReservedAmount and is used to iterate over the raw logs and unpacked data for IncreaseReservedAmount events raised by the VaultV2 contract.

func (*VaultV2IncreaseReservedAmountIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2IncreaseReservedAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2IncreaseReservedAmountIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2IncreaseUsdgAmount

type VaultV2IncreaseUsdgAmount struct {
	Token  common.Address
	Amount *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

VaultV2IncreaseUsdgAmount represents a IncreaseUsdgAmount event raised by the VaultV2 contract.

type VaultV2IncreaseUsdgAmountIterator

type VaultV2IncreaseUsdgAmountIterator struct {
	Event *VaultV2IncreaseUsdgAmount // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2IncreaseUsdgAmountIterator is returned from FilterIncreaseUsdgAmount and is used to iterate over the raw logs and unpacked data for IncreaseUsdgAmount events raised by the VaultV2 contract.

func (*VaultV2IncreaseUsdgAmountIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2IncreaseUsdgAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2IncreaseUsdgAmountIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2LiquidatePosition

type VaultV2LiquidatePosition struct {
	Key             [32]byte
	Account         common.Address
	CollateralToken common.Address
	IndexToken      common.Address
	IsLong          bool
	Size            *big.Int
	Collateral      *big.Int
	ReserveAmount   *big.Int
	RealisedPnl     *big.Int
	MarkPrice       *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

VaultV2LiquidatePosition represents a LiquidatePosition event raised by the VaultV2 contract.

type VaultV2LiquidatePositionIterator

type VaultV2LiquidatePositionIterator struct {
	Event *VaultV2LiquidatePosition // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2LiquidatePositionIterator is returned from FilterLiquidatePosition and is used to iterate over the raw logs and unpacked data for LiquidatePosition events raised by the VaultV2 contract.

func (*VaultV2LiquidatePositionIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2LiquidatePositionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2LiquidatePositionIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2Raw

type VaultV2Raw struct {
	Contract *VaultV2 // Generic contract binding to access the raw methods on
}

VaultV2Raw is an auto generated low-level Go binding around an Ethereum contract.

func (*VaultV2Raw) Call

func (_VaultV2 *VaultV2Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*VaultV2Raw) Transact

func (_VaultV2 *VaultV2Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*VaultV2Raw) Transfer

func (_VaultV2 *VaultV2Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type VaultV2SellUSDG

type VaultV2SellUSDG struct {
	Account        common.Address
	Token          common.Address
	UsdgAmount     *big.Int
	TokenAmount    *big.Int
	FeeBasisPoints *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

VaultV2SellUSDG represents a SellUSDG event raised by the VaultV2 contract.

type VaultV2SellUSDGIterator

type VaultV2SellUSDGIterator struct {
	Event *VaultV2SellUSDG // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2SellUSDGIterator is returned from FilterSellUSDG and is used to iterate over the raw logs and unpacked data for SellUSDG events raised by the VaultV2 contract.

func (*VaultV2SellUSDGIterator) Close

func (it *VaultV2SellUSDGIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2SellUSDGIterator) Error

func (it *VaultV2SellUSDGIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2SellUSDGIterator) Next

func (it *VaultV2SellUSDGIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2Session

type VaultV2Session struct {
	Contract     *VaultV2          // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

VaultV2Session is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*VaultV2Session) AddRouter

func (_VaultV2 *VaultV2Session) AddRouter(_router common.Address) (*types.Transaction, error)

AddRouter is a paid mutator transaction binding the contract method 0x24ca984e.

Solidity: function addRouter(address _router) returns()

func (*VaultV2Session) AdjustForDecimals

func (_VaultV2 *VaultV2Session) AdjustForDecimals(_amount *big.Int, _tokenDiv common.Address, _tokenMul common.Address) (*big.Int, error)

AdjustForDecimals is a free data retrieval call binding the contract method 0x42152873.

Solidity: function adjustForDecimals(uint256 _amount, address _tokenDiv, address _tokenMul) view returns(uint256)

func (*VaultV2Session) AllWhitelistedTokens

func (_VaultV2 *VaultV2Session) AllWhitelistedTokens(arg0 *big.Int) (common.Address, error)

AllWhitelistedTokens is a free data retrieval call binding the contract method 0xe468baf0.

Solidity: function allWhitelistedTokens(uint256 ) view returns(address)

func (*VaultV2Session) AllWhitelistedTokensLength

func (_VaultV2 *VaultV2Session) AllWhitelistedTokensLength() (*big.Int, error)

AllWhitelistedTokensLength is a free data retrieval call binding the contract method 0x0842b076.

Solidity: function allWhitelistedTokensLength() view returns(uint256)

func (*VaultV2Session) ApprovedRouters

func (_VaultV2 *VaultV2Session) ApprovedRouters(arg0 common.Address, arg1 common.Address) (bool, error)

ApprovedRouters is a free data retrieval call binding the contract method 0x60922199.

Solidity: function approvedRouters(address , address ) view returns(bool)

func (*VaultV2Session) BASISPOINTSDIVISOR

func (_VaultV2 *VaultV2Session) BASISPOINTSDIVISOR() (*big.Int, error)

BASISPOINTSDIVISOR is a free data retrieval call binding the contract method 0x126082cf.

Solidity: function BASIS_POINTS_DIVISOR() view returns(uint256)

func (*VaultV2Session) BufferAmounts

func (_VaultV2 *VaultV2Session) BufferAmounts(arg0 common.Address) (*big.Int, error)

BufferAmounts is a free data retrieval call binding the contract method 0x4a993ee9.

Solidity: function bufferAmounts(address ) view returns(uint256)

func (*VaultV2Session) BuyUSDG

func (_VaultV2 *VaultV2Session) BuyUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)

BuyUSDG is a paid mutator transaction binding the contract method 0x817bb857.

Solidity: function buyUSDG(address _token, address _receiver) returns(uint256)

func (*VaultV2Session) ClearTokenConfig

func (_VaultV2 *VaultV2Session) ClearTokenConfig(_token common.Address) (*types.Transaction, error)

ClearTokenConfig is a paid mutator transaction binding the contract method 0xe67f59a7.

Solidity: function clearTokenConfig(address _token) returns()

func (*VaultV2Session) CumulativeFundingRates

func (_VaultV2 *VaultV2Session) CumulativeFundingRates(arg0 common.Address) (*big.Int, error)

CumulativeFundingRates is a free data retrieval call binding the contract method 0xc65bc7b1.

Solidity: function cumulativeFundingRates(address ) view returns(uint256)

func (*VaultV2Session) DecreasePosition

func (_VaultV2 *VaultV2Session) DecreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address) (*types.Transaction, error)

DecreasePosition is a paid mutator transaction binding the contract method 0x82a08490.

Solidity: function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) returns(uint256)

func (*VaultV2Session) DirectPoolDeposit

func (_VaultV2 *VaultV2Session) DirectPoolDeposit(_token common.Address) (*types.Transaction, error)

DirectPoolDeposit is a paid mutator transaction binding the contract method 0x5f7bc119.

Solidity: function directPoolDeposit(address _token) returns()

func (*VaultV2Session) ErrorController

func (_VaultV2 *VaultV2Session) ErrorController() (common.Address, error)

ErrorController is a free data retrieval call binding the contract method 0x48f35cbb.

Solidity: function errorController() view returns(address)

func (*VaultV2Session) Errors

func (_VaultV2 *VaultV2Session) Errors(arg0 *big.Int) (string, error)

Errors is a free data retrieval call binding the contract method 0xfed1a606.

Solidity: function errors(uint256 ) view returns(string)

func (*VaultV2Session) FUNDINGRATEPRECISION

func (_VaultV2 *VaultV2Session) FUNDINGRATEPRECISION() (*big.Int, error)

FUNDINGRATEPRECISION is a free data retrieval call binding the contract method 0x6be6026b.

Solidity: function FUNDING_RATE_PRECISION() view returns(uint256)

func (*VaultV2Session) FeeReserves

func (_VaultV2 *VaultV2Session) FeeReserves(arg0 common.Address) (*big.Int, error)

FeeReserves is a free data retrieval call binding the contract method 0x1ce9cb8f.

Solidity: function feeReserves(address ) view returns(uint256)

func (*VaultV2Session) FundingInterval

func (_VaultV2 *VaultV2Session) FundingInterval() (*big.Int, error)

FundingInterval is a free data retrieval call binding the contract method 0x9849e412.

Solidity: function fundingInterval() view returns(uint256)

func (*VaultV2Session) FundingRateFactor

func (_VaultV2 *VaultV2Session) FundingRateFactor() (*big.Int, error)

FundingRateFactor is a free data retrieval call binding the contract method 0xc4f718bf.

Solidity: function fundingRateFactor() view returns(uint256)

func (*VaultV2Session) GetDelta

func (_VaultV2 *VaultV2Session) GetDelta(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _lastIncreasedTime *big.Int) (bool, *big.Int, error)

GetDelta is a free data retrieval call binding the contract method 0x5c07eaab.

Solidity: function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) view returns(bool, uint256)

func (*VaultV2Session) GetEntryFundingRate

func (_VaultV2 *VaultV2Session) GetEntryFundingRate(_collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)

GetEntryFundingRate is a free data retrieval call binding the contract method 0xb1cc53ab.

Solidity: function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)

func (*VaultV2Session) GetFeeBasisPoints

func (_VaultV2 *VaultV2Session) GetFeeBasisPoints(_token common.Address, _usdgDelta *big.Int, _feeBasisPoints *big.Int, _taxBasisPoints *big.Int, _increment bool) (*big.Int, error)

GetFeeBasisPoints is a free data retrieval call binding the contract method 0xc7e074c3.

Solidity: function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) view returns(uint256)

func (*VaultV2Session) GetFundingFee

func (_VaultV2 *VaultV2Session) GetFundingFee(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _size *big.Int, _entryFundingRate *big.Int) (*big.Int, error)

GetFundingFee is a free data retrieval call binding the contract method 0xda76524c.

Solidity: function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) view returns(uint256)

func (*VaultV2Session) GetGlobalShortDelta

func (_VaultV2 *VaultV2Session) GetGlobalShortDelta(_token common.Address) (bool, *big.Int, error)

GetGlobalShortDelta is a free data retrieval call binding the contract method 0xb364accb.

Solidity: function getGlobalShortDelta(address _token) view returns(bool, uint256)

func (*VaultV2Session) GetMaxPrice

func (_VaultV2 *VaultV2Session) GetMaxPrice(_token common.Address) (*big.Int, error)

GetMaxPrice is a free data retrieval call binding the contract method 0xe124e6d2.

Solidity: function getMaxPrice(address _token) view returns(uint256)

func (*VaultV2Session) GetMinPrice

func (_VaultV2 *VaultV2Session) GetMinPrice(_token common.Address) (*big.Int, error)

GetMinPrice is a free data retrieval call binding the contract method 0x81a612d6.

Solidity: function getMinPrice(address _token) view returns(uint256)

func (*VaultV2Session) GetNextAveragePrice

func (_VaultV2 *VaultV2Session) GetNextAveragePrice(_indexToken common.Address, _size *big.Int, _averagePrice *big.Int, _isLong bool, _nextPrice *big.Int, _sizeDelta *big.Int, _lastIncreasedTime *big.Int) (*big.Int, error)

GetNextAveragePrice is a free data retrieval call binding the contract method 0xdb97495f.

Solidity: function getNextAveragePrice(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _nextPrice, uint256 _sizeDelta, uint256 _lastIncreasedTime) view returns(uint256)

func (*VaultV2Session) GetNextFundingRate

func (_VaultV2 *VaultV2Session) GetNextFundingRate(_token common.Address) (*big.Int, error)

GetNextFundingRate is a free data retrieval call binding the contract method 0xa93acac2.

Solidity: function getNextFundingRate(address _token) view returns(uint256)

func (*VaultV2Session) GetNextGlobalShortAveragePrice

func (_VaultV2 *VaultV2Session) GetNextGlobalShortAveragePrice(_indexToken common.Address, _nextPrice *big.Int, _sizeDelta *big.Int) (*big.Int, error)

GetNextGlobalShortAveragePrice is a free data retrieval call binding the contract method 0x9d7432ca.

Solidity: function getNextGlobalShortAveragePrice(address _indexToken, uint256 _nextPrice, uint256 _sizeDelta) view returns(uint256)

func (*VaultV2Session) GetPosition

func (_VaultV2 *VaultV2Session) GetPosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, *big.Int, *big.Int, *big.Int, *big.Int, *big.Int, bool, *big.Int, error)

GetPosition is a free data retrieval call binding the contract method 0x4a3f088d.

Solidity: function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256)

func (*VaultV2Session) GetPositionDelta

func (_VaultV2 *VaultV2Session) GetPositionDelta(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (bool, *big.Int, error)

GetPositionDelta is a free data retrieval call binding the contract method 0x45a6f370.

Solidity: function getPositionDelta(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(bool, uint256)

func (*VaultV2Session) GetPositionFee

func (_VaultV2 *VaultV2Session) GetPositionFee(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _sizeDelta *big.Int) (*big.Int, error)

GetPositionFee is a free data retrieval call binding the contract method 0xfdaf6ac3.

Solidity: function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) view returns(uint256)

func (*VaultV2Session) GetPositionKey

func (_VaultV2 *VaultV2Session) GetPositionKey(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) ([32]byte, error)

GetPositionKey is a free data retrieval call binding the contract method 0x2d4b0576.

Solidity: function getPositionKey(address _account, address _collateralToken, address _indexToken, bool _isLong) pure returns(bytes32)

func (*VaultV2Session) GetPositionLeverage

func (_VaultV2 *VaultV2Session) GetPositionLeverage(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool) (*big.Int, error)

GetPositionLeverage is a free data retrieval call binding the contract method 0x51723e82.

Solidity: function getPositionLeverage(address _account, address _collateralToken, address _indexToken, bool _isLong) view returns(uint256)

func (*VaultV2Session) GetRedemptionAmount

func (_VaultV2 *VaultV2Session) GetRedemptionAmount(_token common.Address, _usdgAmount *big.Int) (*big.Int, error)

GetRedemptionAmount is a free data retrieval call binding the contract method 0x2c668ec1.

Solidity: function getRedemptionAmount(address _token, uint256 _usdgAmount) view returns(uint256)

func (*VaultV2Session) GetRedemptionCollateral

func (_VaultV2 *VaultV2Session) GetRedemptionCollateral(_token common.Address) (*big.Int, error)

GetRedemptionCollateral is a free data retrieval call binding the contract method 0xb136ca49.

Solidity: function getRedemptionCollateral(address _token) view returns(uint256)

func (*VaultV2Session) GetRedemptionCollateralUsd

func (_VaultV2 *VaultV2Session) GetRedemptionCollateralUsd(_token common.Address) (*big.Int, error)

GetRedemptionCollateralUsd is a free data retrieval call binding the contract method 0x29ff9615.

Solidity: function getRedemptionCollateralUsd(address _token) view returns(uint256)

func (*VaultV2Session) GetTargetUsdgAmount

func (_VaultV2 *VaultV2Session) GetTargetUsdgAmount(_token common.Address) (*big.Int, error)

GetTargetUsdgAmount is a free data retrieval call binding the contract method 0x3a05dcc1.

Solidity: function getTargetUsdgAmount(address _token) view returns(uint256)

func (*VaultV2Session) GetUtilisation

func (_VaultV2 *VaultV2Session) GetUtilisation(_token common.Address) (*big.Int, error)

GetUtilisation is a free data retrieval call binding the contract method 0x04fef1db.

Solidity: function getUtilisation(address _token) view returns(uint256)

func (*VaultV2Session) GlobalShortAveragePrices

func (_VaultV2 *VaultV2Session) GlobalShortAveragePrices(arg0 common.Address) (*big.Int, error)

GlobalShortAveragePrices is a free data retrieval call binding the contract method 0x62749803.

Solidity: function globalShortAveragePrices(address ) view returns(uint256)

func (*VaultV2Session) GlobalShortSizes

func (_VaultV2 *VaultV2Session) GlobalShortSizes(arg0 common.Address) (*big.Int, error)

GlobalShortSizes is a free data retrieval call binding the contract method 0x8a78daa8.

Solidity: function globalShortSizes(address ) view returns(uint256)

func (*VaultV2Session) Gov

func (_VaultV2 *VaultV2Session) Gov() (common.Address, error)

Gov is a free data retrieval call binding the contract method 0x12d43a51.

Solidity: function gov() view returns(address)

func (*VaultV2Session) GuaranteedUsd

func (_VaultV2 *VaultV2Session) GuaranteedUsd(arg0 common.Address) (*big.Int, error)

GuaranteedUsd is a free data retrieval call binding the contract method 0xf07456ce.

Solidity: function guaranteedUsd(address ) view returns(uint256)

func (*VaultV2Session) HasDynamicFees

func (_VaultV2 *VaultV2Session) HasDynamicFees() (bool, error)

HasDynamicFees is a free data retrieval call binding the contract method 0x9f392eb3.

Solidity: function hasDynamicFees() view returns(bool)

func (*VaultV2Session) InManagerMode

func (_VaultV2 *VaultV2Session) InManagerMode() (bool, error)

InManagerMode is a free data retrieval call binding the contract method 0x9060b1ca.

Solidity: function inManagerMode() view returns(bool)

func (*VaultV2Session) InPrivateLiquidationMode

func (_VaultV2 *VaultV2Session) InPrivateLiquidationMode() (bool, error)

InPrivateLiquidationMode is a free data retrieval call binding the contract method 0x181e210e.

Solidity: function inPrivateLiquidationMode() view returns(bool)

func (*VaultV2Session) IncludeAmmPrice

func (_VaultV2 *VaultV2Session) IncludeAmmPrice() (bool, error)

IncludeAmmPrice is a free data retrieval call binding the contract method 0xab08c1c6.

Solidity: function includeAmmPrice() view returns(bool)

func (*VaultV2Session) IncreasePosition

func (_VaultV2 *VaultV2Session) IncreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _sizeDelta *big.Int, _isLong bool) (*types.Transaction, error)

IncreasePosition is a paid mutator transaction binding the contract method 0x48d91abf.

Solidity: function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) returns()

func (*VaultV2Session) Initialize

func (_VaultV2 *VaultV2Session) Initialize(_router common.Address, _usdg common.Address, _priceFeed common.Address, _liquidationFeeUsd *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x728cdbca.

Solidity: function initialize(address _router, address _usdg, address _priceFeed, uint256 _liquidationFeeUsd, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()

func (*VaultV2Session) IsInitialized

func (_VaultV2 *VaultV2Session) IsInitialized() (bool, error)

IsInitialized is a free data retrieval call binding the contract method 0x392e53cd.

Solidity: function isInitialized() view returns(bool)

func (*VaultV2Session) IsLeverageEnabled

func (_VaultV2 *VaultV2Session) IsLeverageEnabled() (bool, error)

IsLeverageEnabled is a free data retrieval call binding the contract method 0x3e72a262.

Solidity: function isLeverageEnabled() view returns(bool)

func (*VaultV2Session) IsLiquidator

func (_VaultV2 *VaultV2Session) IsLiquidator(arg0 common.Address) (bool, error)

IsLiquidator is a free data retrieval call binding the contract method 0x529a356f.

Solidity: function isLiquidator(address ) view returns(bool)

func (*VaultV2Session) IsManager

func (_VaultV2 *VaultV2Session) IsManager(arg0 common.Address) (bool, error)

IsManager is a free data retrieval call binding the contract method 0xf3ae2415.

Solidity: function isManager(address ) view returns(bool)

func (*VaultV2Session) IsSwapEnabled

func (_VaultV2 *VaultV2Session) IsSwapEnabled() (bool, error)

IsSwapEnabled is a free data retrieval call binding the contract method 0x351a964d.

Solidity: function isSwapEnabled() view returns(bool)

func (*VaultV2Session) LastFundingTimes

func (_VaultV2 *VaultV2Session) LastFundingTimes(arg0 common.Address) (*big.Int, error)

LastFundingTimes is a free data retrieval call binding the contract method 0xd8f897c3.

Solidity: function lastFundingTimes(address ) view returns(uint256)

func (*VaultV2Session) LiquidatePosition

func (_VaultV2 *VaultV2Session) LiquidatePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _feeReceiver common.Address) (*types.Transaction, error)

LiquidatePosition is a paid mutator transaction binding the contract method 0xde2ea948.

Solidity: function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) returns()

func (*VaultV2Session) LiquidationFeeUsd

func (_VaultV2 *VaultV2Session) LiquidationFeeUsd() (*big.Int, error)

LiquidationFeeUsd is a free data retrieval call binding the contract method 0x174d2694.

Solidity: function liquidationFeeUsd() view returns(uint256)

func (*VaultV2Session) MAXFEEBASISPOINTS

func (_VaultV2 *VaultV2Session) MAXFEEBASISPOINTS() (*big.Int, error)

MAXFEEBASISPOINTS is a free data retrieval call binding the contract method 0x4befe2ca.

Solidity: function MAX_FEE_BASIS_POINTS() view returns(uint256)

func (*VaultV2Session) MAXFUNDINGRATEFACTOR

func (_VaultV2 *VaultV2Session) MAXFUNDINGRATEFACTOR() (*big.Int, error)

MAXFUNDINGRATEFACTOR is a free data retrieval call binding the contract method 0x8a39735a.

Solidity: function MAX_FUNDING_RATE_FACTOR() view returns(uint256)

func (*VaultV2Session) MAXLIQUIDATIONFEEUSD

func (_VaultV2 *VaultV2Session) MAXLIQUIDATIONFEEUSD() (*big.Int, error)

MAXLIQUIDATIONFEEUSD is a free data retrieval call binding the contract method 0x07c58752.

Solidity: function MAX_LIQUIDATION_FEE_USD() view returns(uint256)

func (*VaultV2Session) MINFUNDINGRATEINTERVAL

func (_VaultV2 *VaultV2Session) MINFUNDINGRATEINTERVAL() (*big.Int, error)

MINFUNDINGRATEINTERVAL is a free data retrieval call binding the contract method 0xfce28c10.

Solidity: function MIN_FUNDING_RATE_INTERVAL() view returns(uint256)

func (*VaultV2Session) MINLEVERAGE

func (_VaultV2 *VaultV2Session) MINLEVERAGE() (*big.Int, error)

MINLEVERAGE is a free data retrieval call binding the contract method 0x34c1557d.

Solidity: function MIN_LEVERAGE() view returns(uint256)

func (*VaultV2Session) MarginFeeBasisPoints

func (_VaultV2 *VaultV2Session) MarginFeeBasisPoints() (*big.Int, error)

MarginFeeBasisPoints is a free data retrieval call binding the contract method 0x318bc689.

Solidity: function marginFeeBasisPoints() view returns(uint256)

func (*VaultV2Session) MaxGasPrice

func (_VaultV2 *VaultV2Session) MaxGasPrice() (*big.Int, error)

MaxGasPrice is a free data retrieval call binding the contract method 0x3de39c11.

Solidity: function maxGasPrice() view returns(uint256)

func (*VaultV2Session) MaxGlobalShortSizes

func (_VaultV2 *VaultV2Session) MaxGlobalShortSizes(arg0 common.Address) (*big.Int, error)

MaxGlobalShortSizes is a free data retrieval call binding the contract method 0x9698d25a.

Solidity: function maxGlobalShortSizes(address ) view returns(uint256)

func (*VaultV2Session) MaxLeverage

func (_VaultV2 *VaultV2Session) MaxLeverage() (*big.Int, error)

MaxLeverage is a free data retrieval call binding the contract method 0xae3302c2.

Solidity: function maxLeverage() view returns(uint256)

func (*VaultV2Session) MaxUsdgAmounts

func (_VaultV2 *VaultV2Session) MaxUsdgAmounts(arg0 common.Address) (*big.Int, error)

MaxUsdgAmounts is a free data retrieval call binding the contract method 0xad1e4f8d.

Solidity: function maxUsdgAmounts(address ) view returns(uint256)

func (*VaultV2Session) MinProfitBasisPoints

func (_VaultV2 *VaultV2Session) MinProfitBasisPoints(arg0 common.Address) (*big.Int, error)

MinProfitBasisPoints is a free data retrieval call binding the contract method 0x88b1fbdf.

Solidity: function minProfitBasisPoints(address ) view returns(uint256)

func (*VaultV2Session) MinProfitTime

func (_VaultV2 *VaultV2Session) MinProfitTime() (*big.Int, error)

MinProfitTime is a free data retrieval call binding the contract method 0xd9ac4225.

Solidity: function minProfitTime() view returns(uint256)

func (*VaultV2Session) MintBurnFeeBasisPoints

func (_VaultV2 *VaultV2Session) MintBurnFeeBasisPoints() (*big.Int, error)

MintBurnFeeBasisPoints is a free data retrieval call binding the contract method 0x4d47b304.

Solidity: function mintBurnFeeBasisPoints() view returns(uint256)

func (*VaultV2Session) PRICEPRECISION

func (_VaultV2 *VaultV2Session) PRICEPRECISION() (*big.Int, error)

PRICEPRECISION is a free data retrieval call binding the contract method 0x95082d25.

Solidity: function PRICE_PRECISION() view returns(uint256)

func (*VaultV2Session) PoolAmounts

func (_VaultV2 *VaultV2Session) PoolAmounts(arg0 common.Address) (*big.Int, error)

PoolAmounts is a free data retrieval call binding the contract method 0x52f55eed.

Solidity: function poolAmounts(address ) view returns(uint256)

func (*VaultV2Session) Positions

func (_VaultV2 *VaultV2Session) Positions(arg0 [32]byte) (struct {
	Size              *big.Int
	Collateral        *big.Int
	AveragePrice      *big.Int
	EntryFundingRate  *big.Int
	ReserveAmount     *big.Int
	RealisedPnl       *big.Int
	LastIncreasedTime *big.Int
}, error)

Positions is a free data retrieval call binding the contract method 0x514ea4bf.

Solidity: function positions(bytes32 ) view returns(uint256 size, uint256 collateral, uint256 averagePrice, uint256 entryFundingRate, uint256 reserveAmount, int256 realisedPnl, uint256 lastIncreasedTime)

func (*VaultV2Session) PriceFeed

func (_VaultV2 *VaultV2Session) PriceFeed() (common.Address, error)

PriceFeed is a free data retrieval call binding the contract method 0x741bef1a.

Solidity: function priceFeed() view returns(address)

func (*VaultV2Session) RemoveRouter

func (_VaultV2 *VaultV2Session) RemoveRouter(_router common.Address) (*types.Transaction, error)

RemoveRouter is a paid mutator transaction binding the contract method 0x6ae0b154.

Solidity: function removeRouter(address _router) returns()

func (*VaultV2Session) ReservedAmounts

func (_VaultV2 *VaultV2Session) ReservedAmounts(arg0 common.Address) (*big.Int, error)

ReservedAmounts is a free data retrieval call binding the contract method 0xc3c7b9e9.

Solidity: function reservedAmounts(address ) view returns(uint256)

func (*VaultV2Session) Router

func (_VaultV2 *VaultV2Session) Router() (common.Address, error)

Router is a free data retrieval call binding the contract method 0xf887ea40.

Solidity: function router() view returns(address)

func (*VaultV2Session) SellUSDG

func (_VaultV2 *VaultV2Session) SellUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)

SellUSDG is a paid mutator transaction binding the contract method 0x711e6190.

Solidity: function sellUSDG(address _token, address _receiver) returns(uint256)

func (*VaultV2Session) SetBufferAmount

func (_VaultV2 *VaultV2Session) SetBufferAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)

SetBufferAmount is a paid mutator transaction binding the contract method 0x8585f4d2.

Solidity: function setBufferAmount(address _token, uint256 _amount) returns()

func (*VaultV2Session) SetError

func (_VaultV2 *VaultV2Session) SetError(_errorCode *big.Int, _error string) (*types.Transaction, error)

SetError is a paid mutator transaction binding the contract method 0x28e67be5.

Solidity: function setError(uint256 _errorCode, string _error) returns()

func (*VaultV2Session) SetErrorController

func (_VaultV2 *VaultV2Session) SetErrorController(_errorController common.Address) (*types.Transaction, error)

SetErrorController is a paid mutator transaction binding the contract method 0x8f7b8404.

Solidity: function setErrorController(address _errorController) returns()

func (*VaultV2Session) SetFees

func (_VaultV2 *VaultV2Session) SetFees(_taxBasisPoints *big.Int, _stableTaxBasisPoints *big.Int, _mintBurnFeeBasisPoints *big.Int, _swapFeeBasisPoints *big.Int, _stableSwapFeeBasisPoints *big.Int, _marginFeeBasisPoints *big.Int, _liquidationFeeUsd *big.Int, _minProfitTime *big.Int, _hasDynamicFees bool) (*types.Transaction, error)

SetFees is a paid mutator transaction binding the contract method 0x40eb3802.

Solidity: function setFees(uint256 _taxBasisPoints, uint256 _stableTaxBasisPoints, uint256 _mintBurnFeeBasisPoints, uint256 _swapFeeBasisPoints, uint256 _stableSwapFeeBasisPoints, uint256 _marginFeeBasisPoints, uint256 _liquidationFeeUsd, uint256 _minProfitTime, bool _hasDynamicFees) returns()

func (*VaultV2Session) SetFundingRate

func (_VaultV2 *VaultV2Session) SetFundingRate(_fundingInterval *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)

SetFundingRate is a paid mutator transaction binding the contract method 0x8a27d468.

Solidity: function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()

func (*VaultV2Session) SetGov

func (_VaultV2 *VaultV2Session) SetGov(_gov common.Address) (*types.Transaction, error)

SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.

Solidity: function setGov(address _gov) returns()

func (*VaultV2Session) SetInManagerMode

func (_VaultV2 *VaultV2Session) SetInManagerMode(_inManagerMode bool) (*types.Transaction, error)

SetInManagerMode is a paid mutator transaction binding the contract method 0x24b0c04d.

Solidity: function setInManagerMode(bool _inManagerMode) returns()

func (*VaultV2Session) SetInPrivateLiquidationMode

func (_VaultV2 *VaultV2Session) SetInPrivateLiquidationMode(_inPrivateLiquidationMode bool) (*types.Transaction, error)

SetInPrivateLiquidationMode is a paid mutator transaction binding the contract method 0xf07bbf77.

Solidity: function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) returns()

func (*VaultV2Session) SetIsLeverageEnabled

func (_VaultV2 *VaultV2Session) SetIsLeverageEnabled(_isLeverageEnabled bool) (*types.Transaction, error)

SetIsLeverageEnabled is a paid mutator transaction binding the contract method 0x7c2eb9f7.

Solidity: function setIsLeverageEnabled(bool _isLeverageEnabled) returns()

func (*VaultV2Session) SetIsSwapEnabled

func (_VaultV2 *VaultV2Session) SetIsSwapEnabled(_isSwapEnabled bool) (*types.Transaction, error)

SetIsSwapEnabled is a paid mutator transaction binding the contract method 0x30455ede.

Solidity: function setIsSwapEnabled(bool _isSwapEnabled) returns()

func (*VaultV2Session) SetLiquidator

func (_VaultV2 *VaultV2Session) SetLiquidator(_liquidator common.Address, _isActive bool) (*types.Transaction, error)

SetLiquidator is a paid mutator transaction binding the contract method 0x4453a374.

Solidity: function setLiquidator(address _liquidator, bool _isActive) returns()

func (*VaultV2Session) SetManager

func (_VaultV2 *VaultV2Session) SetManager(_manager common.Address, _isManager bool) (*types.Transaction, error)

SetManager is a paid mutator transaction binding the contract method 0xa5e90eee.

Solidity: function setManager(address _manager, bool _isManager) returns()

func (*VaultV2Session) SetMaxGasPrice

func (_VaultV2 *VaultV2Session) SetMaxGasPrice(_maxGasPrice *big.Int) (*types.Transaction, error)

SetMaxGasPrice is a paid mutator transaction binding the contract method 0xd2fa635e.

Solidity: function setMaxGasPrice(uint256 _maxGasPrice) returns()

func (*VaultV2Session) SetMaxGlobalShortSize

func (_VaultV2 *VaultV2Session) SetMaxGlobalShortSize(_token common.Address, _amount *big.Int) (*types.Transaction, error)

SetMaxGlobalShortSize is a paid mutator transaction binding the contract method 0xefa10a6e.

Solidity: function setMaxGlobalShortSize(address _token, uint256 _amount) returns()

func (*VaultV2Session) SetMaxLeverage

func (_VaultV2 *VaultV2Session) SetMaxLeverage(_maxLeverage *big.Int) (*types.Transaction, error)

SetMaxLeverage is a paid mutator transaction binding the contract method 0xd3127e63.

Solidity: function setMaxLeverage(uint256 _maxLeverage) returns()

func (*VaultV2Session) SetPriceFeed

func (_VaultV2 *VaultV2Session) SetPriceFeed(_priceFeed common.Address) (*types.Transaction, error)

SetPriceFeed is a paid mutator transaction binding the contract method 0x724e78da.

Solidity: function setPriceFeed(address _priceFeed) returns()

func (*VaultV2Session) SetTokenConfig

func (_VaultV2 *VaultV2Session) SetTokenConfig(_token common.Address, _tokenDecimals *big.Int, _tokenWeight *big.Int, _minProfitBps *big.Int, _maxUsdgAmount *big.Int, _isStable bool, _isShortable bool) (*types.Transaction, error)

SetTokenConfig is a paid mutator transaction binding the contract method 0x3c5a6e35.

Solidity: function setTokenConfig(address _token, uint256 _tokenDecimals, uint256 _tokenWeight, uint256 _minProfitBps, uint256 _maxUsdgAmount, bool _isStable, bool _isShortable) returns()

func (*VaultV2Session) SetUsdgAmount

func (_VaultV2 *VaultV2Session) SetUsdgAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)

SetUsdgAmount is a paid mutator transaction binding the contract method 0xd66b000d.

Solidity: function setUsdgAmount(address _token, uint256 _amount) returns()

func (*VaultV2Session) SetVaultUtils

func (_VaultV2 *VaultV2Session) SetVaultUtils(_vaultUtils common.Address) (*types.Transaction, error)

SetVaultUtils is a paid mutator transaction binding the contract method 0x71089f4d.

Solidity: function setVaultUtils(address _vaultUtils) returns()

func (*VaultV2Session) ShortableTokens

func (_VaultV2 *VaultV2Session) ShortableTokens(arg0 common.Address) (bool, error)

ShortableTokens is a free data retrieval call binding the contract method 0xdb3555fb.

Solidity: function shortableTokens(address ) view returns(bool)

func (*VaultV2Session) StableFundingRateFactor

func (_VaultV2 *VaultV2Session) StableFundingRateFactor() (*big.Int, error)

StableFundingRateFactor is a free data retrieval call binding the contract method 0x134ca63b.

Solidity: function stableFundingRateFactor() view returns(uint256)

func (*VaultV2Session) StableSwapFeeBasisPoints

func (_VaultV2 *VaultV2Session) StableSwapFeeBasisPoints() (*big.Int, error)

StableSwapFeeBasisPoints is a free data retrieval call binding the contract method 0xdf73a267.

Solidity: function stableSwapFeeBasisPoints() view returns(uint256)

func (*VaultV2Session) StableTaxBasisPoints

func (_VaultV2 *VaultV2Session) StableTaxBasisPoints() (*big.Int, error)

StableTaxBasisPoints is a free data retrieval call binding the contract method 0x10eb56c2.

Solidity: function stableTaxBasisPoints() view returns(uint256)

func (*VaultV2Session) StableTokens

func (_VaultV2 *VaultV2Session) StableTokens(arg0 common.Address) (bool, error)

StableTokens is a free data retrieval call binding the contract method 0x42b60b03.

Solidity: function stableTokens(address ) view returns(bool)

func (*VaultV2Session) Swap

func (_VaultV2 *VaultV2Session) Swap(_tokenIn common.Address, _tokenOut common.Address, _receiver common.Address) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x93316212.

Solidity: function swap(address _tokenIn, address _tokenOut, address _receiver) returns(uint256)

func (*VaultV2Session) SwapFeeBasisPoints

func (_VaultV2 *VaultV2Session) SwapFeeBasisPoints() (*big.Int, error)

SwapFeeBasisPoints is a free data retrieval call binding the contract method 0xa22f2392.

Solidity: function swapFeeBasisPoints() view returns(uint256)

func (*VaultV2Session) TaxBasisPoints

func (_VaultV2 *VaultV2Session) TaxBasisPoints() (*big.Int, error)

TaxBasisPoints is a free data retrieval call binding the contract method 0x7a210a2b.

Solidity: function taxBasisPoints() view returns(uint256)

func (*VaultV2Session) TokenBalances

func (_VaultV2 *VaultV2Session) TokenBalances(arg0 common.Address) (*big.Int, error)

TokenBalances is a free data retrieval call binding the contract method 0x523fba7f.

Solidity: function tokenBalances(address ) view returns(uint256)

func (*VaultV2Session) TokenDecimals

func (_VaultV2 *VaultV2Session) TokenDecimals(arg0 common.Address) (*big.Int, error)

TokenDecimals is a free data retrieval call binding the contract method 0x8ee573ac.

Solidity: function tokenDecimals(address ) view returns(uint256)

func (*VaultV2Session) TokenToUsdMin

func (_VaultV2 *VaultV2Session) TokenToUsdMin(_token common.Address, _tokenAmount *big.Int) (*big.Int, error)

TokenToUsdMin is a free data retrieval call binding the contract method 0x0a48d5a9.

Solidity: function tokenToUsdMin(address _token, uint256 _tokenAmount) view returns(uint256)

func (*VaultV2Session) TokenWeights

func (_VaultV2 *VaultV2Session) TokenWeights(arg0 common.Address) (*big.Int, error)

TokenWeights is a free data retrieval call binding the contract method 0xab2f3ad4.

Solidity: function tokenWeights(address ) view returns(uint256)

func (*VaultV2Session) TotalTokenWeights

func (_VaultV2 *VaultV2Session) TotalTokenWeights() (*big.Int, error)

TotalTokenWeights is a free data retrieval call binding the contract method 0xdc8f5fac.

Solidity: function totalTokenWeights() view returns(uint256)

func (*VaultV2Session) USDGDECIMALS

func (_VaultV2 *VaultV2Session) USDGDECIMALS() (*big.Int, error)

USDGDECIMALS is a free data retrieval call binding the contract method 0x870d917c.

Solidity: function USDG_DECIMALS() view returns(uint256)

func (*VaultV2Session) UpdateCumulativeFundingRate

func (_VaultV2 *VaultV2Session) UpdateCumulativeFundingRate(_collateralToken common.Address, _indexToken common.Address) (*types.Transaction, error)

UpdateCumulativeFundingRate is a paid mutator transaction binding the contract method 0xfbfded6d.

Solidity: function updateCumulativeFundingRate(address _collateralToken, address _indexToken) returns()

func (*VaultV2Session) UpgradeVault

func (_VaultV2 *VaultV2Session) UpgradeVault(_newVault common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)

UpgradeVault is a paid mutator transaction binding the contract method 0xcea0c328.

Solidity: function upgradeVault(address _newVault, address _token, uint256 _amount) returns()

func (*VaultV2Session) UsdToToken

func (_VaultV2 *VaultV2Session) UsdToToken(_token common.Address, _usdAmount *big.Int, _price *big.Int) (*big.Int, error)

UsdToToken is a free data retrieval call binding the contract method 0xfa12dbc0.

Solidity: function usdToToken(address _token, uint256 _usdAmount, uint256 _price) view returns(uint256)

func (*VaultV2Session) UsdToTokenMax

func (_VaultV2 *VaultV2Session) UsdToTokenMax(_token common.Address, _usdAmount *big.Int) (*big.Int, error)

UsdToTokenMax is a free data retrieval call binding the contract method 0xa42ab3d2.

Solidity: function usdToTokenMax(address _token, uint256 _usdAmount) view returns(uint256)

func (*VaultV2Session) UsdToTokenMin

func (_VaultV2 *VaultV2Session) UsdToTokenMin(_token common.Address, _usdAmount *big.Int) (*big.Int, error)

UsdToTokenMin is a free data retrieval call binding the contract method 0x9899cd02.

Solidity: function usdToTokenMin(address _token, uint256 _usdAmount) view returns(uint256)

func (*VaultV2Session) Usdg

func (_VaultV2 *VaultV2Session) Usdg() (common.Address, error)

Usdg is a free data retrieval call binding the contract method 0xf5b91b7b.

Solidity: function usdg() view returns(address)

func (*VaultV2Session) UsdgAmounts

func (_VaultV2 *VaultV2Session) UsdgAmounts(arg0 common.Address) (*big.Int, error)

UsdgAmounts is a free data retrieval call binding the contract method 0x1aa4ace5.

Solidity: function usdgAmounts(address ) view returns(uint256)

func (*VaultV2Session) UseSwapPricing

func (_VaultV2 *VaultV2Session) UseSwapPricing() (bool, error)

UseSwapPricing is a free data retrieval call binding the contract method 0xb06423f3.

Solidity: function useSwapPricing() view returns(bool)

func (*VaultV2Session) ValidateLiquidation

func (_VaultV2 *VaultV2Session) ValidateLiquidation(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _raise bool) (*big.Int, *big.Int, error)

ValidateLiquidation is a free data retrieval call binding the contract method 0xd54d5a9f.

Solidity: function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) view returns(uint256, uint256)

func (*VaultV2Session) VaultUtils

func (_VaultV2 *VaultV2Session) VaultUtils() (common.Address, error)

VaultUtils is a free data retrieval call binding the contract method 0x6abbe0c8.

Solidity: function vaultUtils() view returns(address)

func (*VaultV2Session) WhitelistedTokenCount

func (_VaultV2 *VaultV2Session) WhitelistedTokenCount() (*big.Int, error)

WhitelistedTokenCount is a free data retrieval call binding the contract method 0x62287a32.

Solidity: function whitelistedTokenCount() view returns(uint256)

func (*VaultV2Session) WhitelistedTokens

func (_VaultV2 *VaultV2Session) WhitelistedTokens(arg0 common.Address) (bool, error)

WhitelistedTokens is a free data retrieval call binding the contract method 0xdaf9c210.

Solidity: function whitelistedTokens(address ) view returns(bool)

func (*VaultV2Session) WithdrawFees

func (_VaultV2 *VaultV2Session) WithdrawFees(_token common.Address, _receiver common.Address) (*types.Transaction, error)

WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.

Solidity: function withdrawFees(address _token, address _receiver) returns(uint256)

type VaultV2Swap

type VaultV2Swap struct {
	Account            common.Address
	TokenIn            common.Address
	TokenOut           common.Address
	AmountIn           *big.Int
	AmountOut          *big.Int
	AmountOutAfterFees *big.Int
	FeeBasisPoints     *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

VaultV2Swap represents a Swap event raised by the VaultV2 contract.

type VaultV2SwapIterator

type VaultV2SwapIterator struct {
	Event *VaultV2Swap // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2SwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the VaultV2 contract.

func (*VaultV2SwapIterator) Close

func (it *VaultV2SwapIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2SwapIterator) Error

func (it *VaultV2SwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2SwapIterator) Next

func (it *VaultV2SwapIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2Transactor

type VaultV2Transactor struct {
	// contains filtered or unexported fields
}

VaultV2Transactor is an auto generated write-only Go binding around an Ethereum contract.

func NewVaultV2Transactor

func NewVaultV2Transactor(address common.Address, transactor bind.ContractTransactor) (*VaultV2Transactor, error)

NewVaultV2Transactor creates a new write-only instance of VaultV2, bound to a specific deployed contract.

func (*VaultV2Transactor) AddRouter

func (_VaultV2 *VaultV2Transactor) AddRouter(opts *bind.TransactOpts, _router common.Address) (*types.Transaction, error)

AddRouter is a paid mutator transaction binding the contract method 0x24ca984e.

Solidity: function addRouter(address _router) returns()

func (*VaultV2Transactor) BuyUSDG

func (_VaultV2 *VaultV2Transactor) BuyUSDG(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)

BuyUSDG is a paid mutator transaction binding the contract method 0x817bb857.

Solidity: function buyUSDG(address _token, address _receiver) returns(uint256)

func (*VaultV2Transactor) ClearTokenConfig

func (_VaultV2 *VaultV2Transactor) ClearTokenConfig(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)

ClearTokenConfig is a paid mutator transaction binding the contract method 0xe67f59a7.

Solidity: function clearTokenConfig(address _token) returns()

func (*VaultV2Transactor) DecreasePosition

func (_VaultV2 *VaultV2Transactor) DecreasePosition(opts *bind.TransactOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address) (*types.Transaction, error)

DecreasePosition is a paid mutator transaction binding the contract method 0x82a08490.

Solidity: function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) returns(uint256)

func (*VaultV2Transactor) DirectPoolDeposit

func (_VaultV2 *VaultV2Transactor) DirectPoolDeposit(opts *bind.TransactOpts, _token common.Address) (*types.Transaction, error)

DirectPoolDeposit is a paid mutator transaction binding the contract method 0x5f7bc119.

Solidity: function directPoolDeposit(address _token) returns()

func (*VaultV2Transactor) IncreasePosition

func (_VaultV2 *VaultV2Transactor) IncreasePosition(opts *bind.TransactOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _sizeDelta *big.Int, _isLong bool) (*types.Transaction, error)

IncreasePosition is a paid mutator transaction binding the contract method 0x48d91abf.

Solidity: function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) returns()

func (*VaultV2Transactor) Initialize

func (_VaultV2 *VaultV2Transactor) Initialize(opts *bind.TransactOpts, _router common.Address, _usdg common.Address, _priceFeed common.Address, _liquidationFeeUsd *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x728cdbca.

Solidity: function initialize(address _router, address _usdg, address _priceFeed, uint256 _liquidationFeeUsd, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()

func (*VaultV2Transactor) LiquidatePosition

func (_VaultV2 *VaultV2Transactor) LiquidatePosition(opts *bind.TransactOpts, _account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _feeReceiver common.Address) (*types.Transaction, error)

LiquidatePosition is a paid mutator transaction binding the contract method 0xde2ea948.

Solidity: function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) returns()

func (*VaultV2Transactor) RemoveRouter

func (_VaultV2 *VaultV2Transactor) RemoveRouter(opts *bind.TransactOpts, _router common.Address) (*types.Transaction, error)

RemoveRouter is a paid mutator transaction binding the contract method 0x6ae0b154.

Solidity: function removeRouter(address _router) returns()

func (*VaultV2Transactor) SellUSDG

func (_VaultV2 *VaultV2Transactor) SellUSDG(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)

SellUSDG is a paid mutator transaction binding the contract method 0x711e6190.

Solidity: function sellUSDG(address _token, address _receiver) returns(uint256)

func (*VaultV2Transactor) SetBufferAmount

func (_VaultV2 *VaultV2Transactor) SetBufferAmount(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)

SetBufferAmount is a paid mutator transaction binding the contract method 0x8585f4d2.

Solidity: function setBufferAmount(address _token, uint256 _amount) returns()

func (*VaultV2Transactor) SetError

func (_VaultV2 *VaultV2Transactor) SetError(opts *bind.TransactOpts, _errorCode *big.Int, _error string) (*types.Transaction, error)

SetError is a paid mutator transaction binding the contract method 0x28e67be5.

Solidity: function setError(uint256 _errorCode, string _error) returns()

func (*VaultV2Transactor) SetErrorController

func (_VaultV2 *VaultV2Transactor) SetErrorController(opts *bind.TransactOpts, _errorController common.Address) (*types.Transaction, error)

SetErrorController is a paid mutator transaction binding the contract method 0x8f7b8404.

Solidity: function setErrorController(address _errorController) returns()

func (*VaultV2Transactor) SetFees

func (_VaultV2 *VaultV2Transactor) SetFees(opts *bind.TransactOpts, _taxBasisPoints *big.Int, _stableTaxBasisPoints *big.Int, _mintBurnFeeBasisPoints *big.Int, _swapFeeBasisPoints *big.Int, _stableSwapFeeBasisPoints *big.Int, _marginFeeBasisPoints *big.Int, _liquidationFeeUsd *big.Int, _minProfitTime *big.Int, _hasDynamicFees bool) (*types.Transaction, error)

SetFees is a paid mutator transaction binding the contract method 0x40eb3802.

Solidity: function setFees(uint256 _taxBasisPoints, uint256 _stableTaxBasisPoints, uint256 _mintBurnFeeBasisPoints, uint256 _swapFeeBasisPoints, uint256 _stableSwapFeeBasisPoints, uint256 _marginFeeBasisPoints, uint256 _liquidationFeeUsd, uint256 _minProfitTime, bool _hasDynamicFees) returns()

func (*VaultV2Transactor) SetFundingRate

func (_VaultV2 *VaultV2Transactor) SetFundingRate(opts *bind.TransactOpts, _fundingInterval *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)

SetFundingRate is a paid mutator transaction binding the contract method 0x8a27d468.

Solidity: function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()

func (*VaultV2Transactor) SetGov

func (_VaultV2 *VaultV2Transactor) SetGov(opts *bind.TransactOpts, _gov common.Address) (*types.Transaction, error)

SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.

Solidity: function setGov(address _gov) returns()

func (*VaultV2Transactor) SetInManagerMode

func (_VaultV2 *VaultV2Transactor) SetInManagerMode(opts *bind.TransactOpts, _inManagerMode bool) (*types.Transaction, error)

SetInManagerMode is a paid mutator transaction binding the contract method 0x24b0c04d.

Solidity: function setInManagerMode(bool _inManagerMode) returns()

func (*VaultV2Transactor) SetInPrivateLiquidationMode

func (_VaultV2 *VaultV2Transactor) SetInPrivateLiquidationMode(opts *bind.TransactOpts, _inPrivateLiquidationMode bool) (*types.Transaction, error)

SetInPrivateLiquidationMode is a paid mutator transaction binding the contract method 0xf07bbf77.

Solidity: function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) returns()

func (*VaultV2Transactor) SetIsLeverageEnabled

func (_VaultV2 *VaultV2Transactor) SetIsLeverageEnabled(opts *bind.TransactOpts, _isLeverageEnabled bool) (*types.Transaction, error)

SetIsLeverageEnabled is a paid mutator transaction binding the contract method 0x7c2eb9f7.

Solidity: function setIsLeverageEnabled(bool _isLeverageEnabled) returns()

func (*VaultV2Transactor) SetIsSwapEnabled

func (_VaultV2 *VaultV2Transactor) SetIsSwapEnabled(opts *bind.TransactOpts, _isSwapEnabled bool) (*types.Transaction, error)

SetIsSwapEnabled is a paid mutator transaction binding the contract method 0x30455ede.

Solidity: function setIsSwapEnabled(bool _isSwapEnabled) returns()

func (*VaultV2Transactor) SetLiquidator

func (_VaultV2 *VaultV2Transactor) SetLiquidator(opts *bind.TransactOpts, _liquidator common.Address, _isActive bool) (*types.Transaction, error)

SetLiquidator is a paid mutator transaction binding the contract method 0x4453a374.

Solidity: function setLiquidator(address _liquidator, bool _isActive) returns()

func (*VaultV2Transactor) SetManager

func (_VaultV2 *VaultV2Transactor) SetManager(opts *bind.TransactOpts, _manager common.Address, _isManager bool) (*types.Transaction, error)

SetManager is a paid mutator transaction binding the contract method 0xa5e90eee.

Solidity: function setManager(address _manager, bool _isManager) returns()

func (*VaultV2Transactor) SetMaxGasPrice

func (_VaultV2 *VaultV2Transactor) SetMaxGasPrice(opts *bind.TransactOpts, _maxGasPrice *big.Int) (*types.Transaction, error)

SetMaxGasPrice is a paid mutator transaction binding the contract method 0xd2fa635e.

Solidity: function setMaxGasPrice(uint256 _maxGasPrice) returns()

func (*VaultV2Transactor) SetMaxGlobalShortSize

func (_VaultV2 *VaultV2Transactor) SetMaxGlobalShortSize(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)

SetMaxGlobalShortSize is a paid mutator transaction binding the contract method 0xefa10a6e.

Solidity: function setMaxGlobalShortSize(address _token, uint256 _amount) returns()

func (*VaultV2Transactor) SetMaxLeverage

func (_VaultV2 *VaultV2Transactor) SetMaxLeverage(opts *bind.TransactOpts, _maxLeverage *big.Int) (*types.Transaction, error)

SetMaxLeverage is a paid mutator transaction binding the contract method 0xd3127e63.

Solidity: function setMaxLeverage(uint256 _maxLeverage) returns()

func (*VaultV2Transactor) SetPriceFeed

func (_VaultV2 *VaultV2Transactor) SetPriceFeed(opts *bind.TransactOpts, _priceFeed common.Address) (*types.Transaction, error)

SetPriceFeed is a paid mutator transaction binding the contract method 0x724e78da.

Solidity: function setPriceFeed(address _priceFeed) returns()

func (*VaultV2Transactor) SetTokenConfig

func (_VaultV2 *VaultV2Transactor) SetTokenConfig(opts *bind.TransactOpts, _token common.Address, _tokenDecimals *big.Int, _tokenWeight *big.Int, _minProfitBps *big.Int, _maxUsdgAmount *big.Int, _isStable bool, _isShortable bool) (*types.Transaction, error)

SetTokenConfig is a paid mutator transaction binding the contract method 0x3c5a6e35.

Solidity: function setTokenConfig(address _token, uint256 _tokenDecimals, uint256 _tokenWeight, uint256 _minProfitBps, uint256 _maxUsdgAmount, bool _isStable, bool _isShortable) returns()

func (*VaultV2Transactor) SetUsdgAmount

func (_VaultV2 *VaultV2Transactor) SetUsdgAmount(opts *bind.TransactOpts, _token common.Address, _amount *big.Int) (*types.Transaction, error)

SetUsdgAmount is a paid mutator transaction binding the contract method 0xd66b000d.

Solidity: function setUsdgAmount(address _token, uint256 _amount) returns()

func (*VaultV2Transactor) SetVaultUtils

func (_VaultV2 *VaultV2Transactor) SetVaultUtils(opts *bind.TransactOpts, _vaultUtils common.Address) (*types.Transaction, error)

SetVaultUtils is a paid mutator transaction binding the contract method 0x71089f4d.

Solidity: function setVaultUtils(address _vaultUtils) returns()

func (*VaultV2Transactor) Swap

func (_VaultV2 *VaultV2Transactor) Swap(opts *bind.TransactOpts, _tokenIn common.Address, _tokenOut common.Address, _receiver common.Address) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x93316212.

Solidity: function swap(address _tokenIn, address _tokenOut, address _receiver) returns(uint256)

func (*VaultV2Transactor) UpdateCumulativeFundingRate

func (_VaultV2 *VaultV2Transactor) UpdateCumulativeFundingRate(opts *bind.TransactOpts, _collateralToken common.Address, _indexToken common.Address) (*types.Transaction, error)

UpdateCumulativeFundingRate is a paid mutator transaction binding the contract method 0xfbfded6d.

Solidity: function updateCumulativeFundingRate(address _collateralToken, address _indexToken) returns()

func (*VaultV2Transactor) UpgradeVault

func (_VaultV2 *VaultV2Transactor) UpgradeVault(opts *bind.TransactOpts, _newVault common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)

UpgradeVault is a paid mutator transaction binding the contract method 0xcea0c328.

Solidity: function upgradeVault(address _newVault, address _token, uint256 _amount) returns()

func (*VaultV2Transactor) WithdrawFees

func (_VaultV2 *VaultV2Transactor) WithdrawFees(opts *bind.TransactOpts, _token common.Address, _receiver common.Address) (*types.Transaction, error)

WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.

Solidity: function withdrawFees(address _token, address _receiver) returns(uint256)

type VaultV2TransactorRaw

type VaultV2TransactorRaw struct {
	Contract *VaultV2Transactor // Generic write-only contract binding to access the raw methods on
}

VaultV2TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*VaultV2TransactorRaw) Transact

func (_VaultV2 *VaultV2TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*VaultV2TransactorRaw) Transfer

func (_VaultV2 *VaultV2TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type VaultV2TransactorSession

type VaultV2TransactorSession struct {
	Contract     *VaultV2Transactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts  // Transaction auth options to use throughout this session
}

VaultV2TransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*VaultV2TransactorSession) AddRouter

func (_VaultV2 *VaultV2TransactorSession) AddRouter(_router common.Address) (*types.Transaction, error)

AddRouter is a paid mutator transaction binding the contract method 0x24ca984e.

Solidity: function addRouter(address _router) returns()

func (*VaultV2TransactorSession) BuyUSDG

func (_VaultV2 *VaultV2TransactorSession) BuyUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)

BuyUSDG is a paid mutator transaction binding the contract method 0x817bb857.

Solidity: function buyUSDG(address _token, address _receiver) returns(uint256)

func (*VaultV2TransactorSession) ClearTokenConfig

func (_VaultV2 *VaultV2TransactorSession) ClearTokenConfig(_token common.Address) (*types.Transaction, error)

ClearTokenConfig is a paid mutator transaction binding the contract method 0xe67f59a7.

Solidity: function clearTokenConfig(address _token) returns()

func (*VaultV2TransactorSession) DecreasePosition

func (_VaultV2 *VaultV2TransactorSession) DecreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _collateralDelta *big.Int, _sizeDelta *big.Int, _isLong bool, _receiver common.Address) (*types.Transaction, error)

DecreasePosition is a paid mutator transaction binding the contract method 0x82a08490.

Solidity: function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) returns(uint256)

func (*VaultV2TransactorSession) DirectPoolDeposit

func (_VaultV2 *VaultV2TransactorSession) DirectPoolDeposit(_token common.Address) (*types.Transaction, error)

DirectPoolDeposit is a paid mutator transaction binding the contract method 0x5f7bc119.

Solidity: function directPoolDeposit(address _token) returns()

func (*VaultV2TransactorSession) IncreasePosition

func (_VaultV2 *VaultV2TransactorSession) IncreasePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _sizeDelta *big.Int, _isLong bool) (*types.Transaction, error)

IncreasePosition is a paid mutator transaction binding the contract method 0x48d91abf.

Solidity: function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) returns()

func (*VaultV2TransactorSession) Initialize

func (_VaultV2 *VaultV2TransactorSession) Initialize(_router common.Address, _usdg common.Address, _priceFeed common.Address, _liquidationFeeUsd *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x728cdbca.

Solidity: function initialize(address _router, address _usdg, address _priceFeed, uint256 _liquidationFeeUsd, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()

func (*VaultV2TransactorSession) LiquidatePosition

func (_VaultV2 *VaultV2TransactorSession) LiquidatePosition(_account common.Address, _collateralToken common.Address, _indexToken common.Address, _isLong bool, _feeReceiver common.Address) (*types.Transaction, error)

LiquidatePosition is a paid mutator transaction binding the contract method 0xde2ea948.

Solidity: function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) returns()

func (*VaultV2TransactorSession) RemoveRouter

func (_VaultV2 *VaultV2TransactorSession) RemoveRouter(_router common.Address) (*types.Transaction, error)

RemoveRouter is a paid mutator transaction binding the contract method 0x6ae0b154.

Solidity: function removeRouter(address _router) returns()

func (*VaultV2TransactorSession) SellUSDG

func (_VaultV2 *VaultV2TransactorSession) SellUSDG(_token common.Address, _receiver common.Address) (*types.Transaction, error)

SellUSDG is a paid mutator transaction binding the contract method 0x711e6190.

Solidity: function sellUSDG(address _token, address _receiver) returns(uint256)

func (*VaultV2TransactorSession) SetBufferAmount

func (_VaultV2 *VaultV2TransactorSession) SetBufferAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)

SetBufferAmount is a paid mutator transaction binding the contract method 0x8585f4d2.

Solidity: function setBufferAmount(address _token, uint256 _amount) returns()

func (*VaultV2TransactorSession) SetError

func (_VaultV2 *VaultV2TransactorSession) SetError(_errorCode *big.Int, _error string) (*types.Transaction, error)

SetError is a paid mutator transaction binding the contract method 0x28e67be5.

Solidity: function setError(uint256 _errorCode, string _error) returns()

func (*VaultV2TransactorSession) SetErrorController

func (_VaultV2 *VaultV2TransactorSession) SetErrorController(_errorController common.Address) (*types.Transaction, error)

SetErrorController is a paid mutator transaction binding the contract method 0x8f7b8404.

Solidity: function setErrorController(address _errorController) returns()

func (*VaultV2TransactorSession) SetFees

func (_VaultV2 *VaultV2TransactorSession) SetFees(_taxBasisPoints *big.Int, _stableTaxBasisPoints *big.Int, _mintBurnFeeBasisPoints *big.Int, _swapFeeBasisPoints *big.Int, _stableSwapFeeBasisPoints *big.Int, _marginFeeBasisPoints *big.Int, _liquidationFeeUsd *big.Int, _minProfitTime *big.Int, _hasDynamicFees bool) (*types.Transaction, error)

SetFees is a paid mutator transaction binding the contract method 0x40eb3802.

Solidity: function setFees(uint256 _taxBasisPoints, uint256 _stableTaxBasisPoints, uint256 _mintBurnFeeBasisPoints, uint256 _swapFeeBasisPoints, uint256 _stableSwapFeeBasisPoints, uint256 _marginFeeBasisPoints, uint256 _liquidationFeeUsd, uint256 _minProfitTime, bool _hasDynamicFees) returns()

func (*VaultV2TransactorSession) SetFundingRate

func (_VaultV2 *VaultV2TransactorSession) SetFundingRate(_fundingInterval *big.Int, _fundingRateFactor *big.Int, _stableFundingRateFactor *big.Int) (*types.Transaction, error)

SetFundingRate is a paid mutator transaction binding the contract method 0x8a27d468.

Solidity: function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) returns()

func (*VaultV2TransactorSession) SetGov

func (_VaultV2 *VaultV2TransactorSession) SetGov(_gov common.Address) (*types.Transaction, error)

SetGov is a paid mutator transaction binding the contract method 0xcfad57a2.

Solidity: function setGov(address _gov) returns()

func (*VaultV2TransactorSession) SetInManagerMode

func (_VaultV2 *VaultV2TransactorSession) SetInManagerMode(_inManagerMode bool) (*types.Transaction, error)

SetInManagerMode is a paid mutator transaction binding the contract method 0x24b0c04d.

Solidity: function setInManagerMode(bool _inManagerMode) returns()

func (*VaultV2TransactorSession) SetInPrivateLiquidationMode

func (_VaultV2 *VaultV2TransactorSession) SetInPrivateLiquidationMode(_inPrivateLiquidationMode bool) (*types.Transaction, error)

SetInPrivateLiquidationMode is a paid mutator transaction binding the contract method 0xf07bbf77.

Solidity: function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) returns()

func (*VaultV2TransactorSession) SetIsLeverageEnabled

func (_VaultV2 *VaultV2TransactorSession) SetIsLeverageEnabled(_isLeverageEnabled bool) (*types.Transaction, error)

SetIsLeverageEnabled is a paid mutator transaction binding the contract method 0x7c2eb9f7.

Solidity: function setIsLeverageEnabled(bool _isLeverageEnabled) returns()

func (*VaultV2TransactorSession) SetIsSwapEnabled

func (_VaultV2 *VaultV2TransactorSession) SetIsSwapEnabled(_isSwapEnabled bool) (*types.Transaction, error)

SetIsSwapEnabled is a paid mutator transaction binding the contract method 0x30455ede.

Solidity: function setIsSwapEnabled(bool _isSwapEnabled) returns()

func (*VaultV2TransactorSession) SetLiquidator

func (_VaultV2 *VaultV2TransactorSession) SetLiquidator(_liquidator common.Address, _isActive bool) (*types.Transaction, error)

SetLiquidator is a paid mutator transaction binding the contract method 0x4453a374.

Solidity: function setLiquidator(address _liquidator, bool _isActive) returns()

func (*VaultV2TransactorSession) SetManager

func (_VaultV2 *VaultV2TransactorSession) SetManager(_manager common.Address, _isManager bool) (*types.Transaction, error)

SetManager is a paid mutator transaction binding the contract method 0xa5e90eee.

Solidity: function setManager(address _manager, bool _isManager) returns()

func (*VaultV2TransactorSession) SetMaxGasPrice

func (_VaultV2 *VaultV2TransactorSession) SetMaxGasPrice(_maxGasPrice *big.Int) (*types.Transaction, error)

SetMaxGasPrice is a paid mutator transaction binding the contract method 0xd2fa635e.

Solidity: function setMaxGasPrice(uint256 _maxGasPrice) returns()

func (*VaultV2TransactorSession) SetMaxGlobalShortSize

func (_VaultV2 *VaultV2TransactorSession) SetMaxGlobalShortSize(_token common.Address, _amount *big.Int) (*types.Transaction, error)

SetMaxGlobalShortSize is a paid mutator transaction binding the contract method 0xefa10a6e.

Solidity: function setMaxGlobalShortSize(address _token, uint256 _amount) returns()

func (*VaultV2TransactorSession) SetMaxLeverage

func (_VaultV2 *VaultV2TransactorSession) SetMaxLeverage(_maxLeverage *big.Int) (*types.Transaction, error)

SetMaxLeverage is a paid mutator transaction binding the contract method 0xd3127e63.

Solidity: function setMaxLeverage(uint256 _maxLeverage) returns()

func (*VaultV2TransactorSession) SetPriceFeed

func (_VaultV2 *VaultV2TransactorSession) SetPriceFeed(_priceFeed common.Address) (*types.Transaction, error)

SetPriceFeed is a paid mutator transaction binding the contract method 0x724e78da.

Solidity: function setPriceFeed(address _priceFeed) returns()

func (*VaultV2TransactorSession) SetTokenConfig

func (_VaultV2 *VaultV2TransactorSession) SetTokenConfig(_token common.Address, _tokenDecimals *big.Int, _tokenWeight *big.Int, _minProfitBps *big.Int, _maxUsdgAmount *big.Int, _isStable bool, _isShortable bool) (*types.Transaction, error)

SetTokenConfig is a paid mutator transaction binding the contract method 0x3c5a6e35.

Solidity: function setTokenConfig(address _token, uint256 _tokenDecimals, uint256 _tokenWeight, uint256 _minProfitBps, uint256 _maxUsdgAmount, bool _isStable, bool _isShortable) returns()

func (*VaultV2TransactorSession) SetUsdgAmount

func (_VaultV2 *VaultV2TransactorSession) SetUsdgAmount(_token common.Address, _amount *big.Int) (*types.Transaction, error)

SetUsdgAmount is a paid mutator transaction binding the contract method 0xd66b000d.

Solidity: function setUsdgAmount(address _token, uint256 _amount) returns()

func (*VaultV2TransactorSession) SetVaultUtils

func (_VaultV2 *VaultV2TransactorSession) SetVaultUtils(_vaultUtils common.Address) (*types.Transaction, error)

SetVaultUtils is a paid mutator transaction binding the contract method 0x71089f4d.

Solidity: function setVaultUtils(address _vaultUtils) returns()

func (*VaultV2TransactorSession) Swap

func (_VaultV2 *VaultV2TransactorSession) Swap(_tokenIn common.Address, _tokenOut common.Address, _receiver common.Address) (*types.Transaction, error)

Swap is a paid mutator transaction binding the contract method 0x93316212.

Solidity: function swap(address _tokenIn, address _tokenOut, address _receiver) returns(uint256)

func (*VaultV2TransactorSession) UpdateCumulativeFundingRate

func (_VaultV2 *VaultV2TransactorSession) UpdateCumulativeFundingRate(_collateralToken common.Address, _indexToken common.Address) (*types.Transaction, error)

UpdateCumulativeFundingRate is a paid mutator transaction binding the contract method 0xfbfded6d.

Solidity: function updateCumulativeFundingRate(address _collateralToken, address _indexToken) returns()

func (*VaultV2TransactorSession) UpgradeVault

func (_VaultV2 *VaultV2TransactorSession) UpgradeVault(_newVault common.Address, _token common.Address, _amount *big.Int) (*types.Transaction, error)

UpgradeVault is a paid mutator transaction binding the contract method 0xcea0c328.

Solidity: function upgradeVault(address _newVault, address _token, uint256 _amount) returns()

func (*VaultV2TransactorSession) WithdrawFees

func (_VaultV2 *VaultV2TransactorSession) WithdrawFees(_token common.Address, _receiver common.Address) (*types.Transaction, error)

WithdrawFees is a paid mutator transaction binding the contract method 0xf2555278.

Solidity: function withdrawFees(address _token, address _receiver) returns(uint256)

type VaultV2UpdateFundingRate

type VaultV2UpdateFundingRate struct {
	Token       common.Address
	FundingRate *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

VaultV2UpdateFundingRate represents a UpdateFundingRate event raised by the VaultV2 contract.

type VaultV2UpdateFundingRateIterator

type VaultV2UpdateFundingRateIterator struct {
	Event *VaultV2UpdateFundingRate // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2UpdateFundingRateIterator is returned from FilterUpdateFundingRate and is used to iterate over the raw logs and unpacked data for UpdateFundingRate events raised by the VaultV2 contract.

func (*VaultV2UpdateFundingRateIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2UpdateFundingRateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2UpdateFundingRateIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2UpdatePnl

type VaultV2UpdatePnl struct {
	Key       [32]byte
	HasProfit bool
	Delta     *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

VaultV2UpdatePnl represents a UpdatePnl event raised by the VaultV2 contract.

type VaultV2UpdatePnlIterator

type VaultV2UpdatePnlIterator struct {
	Event *VaultV2UpdatePnl // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2UpdatePnlIterator is returned from FilterUpdatePnl and is used to iterate over the raw logs and unpacked data for UpdatePnl events raised by the VaultV2 contract.

func (*VaultV2UpdatePnlIterator) Close

func (it *VaultV2UpdatePnlIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2UpdatePnlIterator) Error

func (it *VaultV2UpdatePnlIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2UpdatePnlIterator) Next

func (it *VaultV2UpdatePnlIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type VaultV2UpdatePosition

type VaultV2UpdatePosition struct {
	Key              [32]byte
	Size             *big.Int
	Collateral       *big.Int
	AveragePrice     *big.Int
	EntryFundingRate *big.Int
	ReserveAmount    *big.Int
	RealisedPnl      *big.Int
	MarkPrice        *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

VaultV2UpdatePosition represents a UpdatePosition event raised by the VaultV2 contract.

type VaultV2UpdatePositionIterator

type VaultV2UpdatePositionIterator struct {
	Event *VaultV2UpdatePosition // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

VaultV2UpdatePositionIterator is returned from FilterUpdatePosition and is used to iterate over the raw logs and unpacked data for UpdatePosition events raised by the VaultV2 contract.

func (*VaultV2UpdatePositionIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*VaultV2UpdatePositionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2UpdatePositionIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL