VaultV2b

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 VaultV2bABI = VaultV2bMetaData.ABI

VaultV2bABI is the input ABI used to generate the binding from. Deprecated: Use VaultV2bMetaData.ABI instead.

View Source
var VaultV2bMetaData = &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}]",
}

VaultV2bMetaData contains all meta data concerning the VaultV2b contract.

Functions

This section is empty.

Types

type VaultV2b

type VaultV2b struct {
	VaultV2bCaller     // Read-only binding to the contract
	VaultV2bTransactor // Write-only binding to the contract
	VaultV2bFilterer   // Log filterer for contract events
}

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

func NewVaultV2b

func NewVaultV2b(address common.Address, backend bind.ContractBackend) (*VaultV2b, error)

NewVaultV2b creates a new instance of VaultV2b, bound to a specific deployed contract.

type VaultV2bBuyUSDG

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

VaultV2bBuyUSDG represents a BuyUSDG event raised by the VaultV2b contract.

type VaultV2bBuyUSDGIterator

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

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

func (*VaultV2bBuyUSDGIterator) Close

func (it *VaultV2bBuyUSDGIterator) Close() error

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

func (*VaultV2bBuyUSDGIterator) Error

func (it *VaultV2bBuyUSDGIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bBuyUSDGIterator) Next

func (it *VaultV2bBuyUSDGIterator) 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 VaultV2bCaller

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

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

func NewVaultV2bCaller

func NewVaultV2bCaller(address common.Address, caller bind.ContractCaller) (*VaultV2bCaller, error)

NewVaultV2bCaller creates a new read-only instance of VaultV2b, bound to a specific deployed contract.

func (*VaultV2bCaller) AdjustForDecimals

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) AllWhitelistedTokens

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) AllWhitelistedTokensLength

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) ApprovedRouters

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) BASISPOINTSDIVISOR

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) BufferAmounts

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) CumulativeFundingRates

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) ErrorController

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) Errors

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) FUNDINGRATEPRECISION

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) FeeReserves

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) FundingInterval

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) FundingRateFactor

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetDelta

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetEntryFundingRate

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetFeeBasisPoints

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetFundingFee

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetGlobalShortDelta

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetMaxPrice

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetMinPrice

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetNextAveragePrice

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetNextFundingRate

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetNextGlobalShortAveragePrice

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetPosition

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetPositionDelta

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetPositionFee

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetPositionKey

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetPositionLeverage

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetRedemptionAmount

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetRedemptionCollateral

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetRedemptionCollateralUsd

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetTargetUsdgAmount

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GetUtilisation

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GlobalShortAveragePrices

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GlobalShortSizes

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) Gov

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) GuaranteedUsd

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) HasDynamicFees

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) InManagerMode

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) InPrivateLiquidationMode

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) IncludeAmmPrice

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) IsInitialized

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) IsLeverageEnabled

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) IsLiquidator

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) IsManager

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) IsSwapEnabled

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) LastFundingTimes

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) LiquidationFeeUsd

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MAXFEEBASISPOINTS

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MAXFUNDINGRATEFACTOR

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MAXLIQUIDATIONFEEUSD

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MINFUNDINGRATEINTERVAL

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MINLEVERAGE

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MarginFeeBasisPoints

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MaxGasPrice

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MaxGlobalShortSizes

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MaxLeverage

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MaxUsdgAmounts

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MinProfitBasisPoints

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MinProfitTime

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) MintBurnFeeBasisPoints

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) PRICEPRECISION

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) PoolAmounts

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) Positions

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) PriceFeed

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) ReservedAmounts

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) Router

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) ShortableTokens

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) StableFundingRateFactor

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) StableSwapFeeBasisPoints

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) StableTaxBasisPoints

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) StableTokens

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) SwapFeeBasisPoints

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) TaxBasisPoints

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) TokenBalances

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) TokenDecimals

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) TokenToUsdMin

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) TokenWeights

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) TotalTokenWeights

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) USDGDECIMALS

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) UsdToToken

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) UsdToTokenMax

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) UsdToTokenMin

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) Usdg

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) UsdgAmounts

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) UseSwapPricing

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) ValidateLiquidation

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) VaultUtils

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) WhitelistedTokenCount

func (_VaultV2b *VaultV2bCaller) 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 (*VaultV2bCaller) WhitelistedTokens

func (_VaultV2b *VaultV2bCaller) 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 VaultV2bCallerRaw

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

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

func (*VaultV2bCallerRaw) Call

func (_VaultV2b *VaultV2bCallerRaw) 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 VaultV2bCallerSession

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

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

func (*VaultV2bCallerSession) AdjustForDecimals

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) AllWhitelistedTokens

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) AllWhitelistedTokensLength

func (_VaultV2b *VaultV2bCallerSession) AllWhitelistedTokensLength() (*big.Int, error)

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

Solidity: function allWhitelistedTokensLength() view returns(uint256)

func (*VaultV2bCallerSession) ApprovedRouters

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) BASISPOINTSDIVISOR

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) BufferAmounts

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) CumulativeFundingRates

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) ErrorController

func (_VaultV2b *VaultV2bCallerSession) ErrorController() (common.Address, error)

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

Solidity: function errorController() view returns(address)

func (*VaultV2bCallerSession) Errors

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) FUNDINGRATEPRECISION

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) FeeReserves

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) FundingInterval

func (_VaultV2b *VaultV2bCallerSession) FundingInterval() (*big.Int, error)

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

Solidity: function fundingInterval() view returns(uint256)

func (*VaultV2bCallerSession) FundingRateFactor

func (_VaultV2b *VaultV2bCallerSession) FundingRateFactor() (*big.Int, error)

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

Solidity: function fundingRateFactor() view returns(uint256)

func (*VaultV2bCallerSession) GetDelta

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetEntryFundingRate

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetFeeBasisPoints

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetFundingFee

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetGlobalShortDelta

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetMaxPrice

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetMinPrice

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetNextAveragePrice

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetNextFundingRate

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetNextGlobalShortAveragePrice

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetPosition

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetPositionDelta

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetPositionFee

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetPositionKey

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetPositionLeverage

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetRedemptionAmount

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetRedemptionCollateral

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetRedemptionCollateralUsd

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetTargetUsdgAmount

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GetUtilisation

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GlobalShortAveragePrices

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) GlobalShortSizes

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) Gov

func (_VaultV2b *VaultV2bCallerSession) Gov() (common.Address, error)

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

Solidity: function gov() view returns(address)

func (*VaultV2bCallerSession) GuaranteedUsd

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) HasDynamicFees

func (_VaultV2b *VaultV2bCallerSession) HasDynamicFees() (bool, error)

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

Solidity: function hasDynamicFees() view returns(bool)

func (*VaultV2bCallerSession) InManagerMode

func (_VaultV2b *VaultV2bCallerSession) InManagerMode() (bool, error)

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

Solidity: function inManagerMode() view returns(bool)

func (*VaultV2bCallerSession) InPrivateLiquidationMode

func (_VaultV2b *VaultV2bCallerSession) InPrivateLiquidationMode() (bool, error)

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

Solidity: function inPrivateLiquidationMode() view returns(bool)

func (*VaultV2bCallerSession) IncludeAmmPrice

func (_VaultV2b *VaultV2bCallerSession) IncludeAmmPrice() (bool, error)

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

Solidity: function includeAmmPrice() view returns(bool)

func (*VaultV2bCallerSession) IsInitialized

func (_VaultV2b *VaultV2bCallerSession) IsInitialized() (bool, error)

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

Solidity: function isInitialized() view returns(bool)

func (*VaultV2bCallerSession) IsLeverageEnabled

func (_VaultV2b *VaultV2bCallerSession) IsLeverageEnabled() (bool, error)

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

Solidity: function isLeverageEnabled() view returns(bool)

func (*VaultV2bCallerSession) IsLiquidator

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) IsManager

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) IsSwapEnabled

func (_VaultV2b *VaultV2bCallerSession) IsSwapEnabled() (bool, error)

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

Solidity: function isSwapEnabled() view returns(bool)

func (*VaultV2bCallerSession) LastFundingTimes

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) LiquidationFeeUsd

func (_VaultV2b *VaultV2bCallerSession) LiquidationFeeUsd() (*big.Int, error)

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

Solidity: function liquidationFeeUsd() view returns(uint256)

func (*VaultV2bCallerSession) MAXFEEBASISPOINTS

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) MAXFUNDINGRATEFACTOR

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) MAXLIQUIDATIONFEEUSD

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) MINFUNDINGRATEINTERVAL

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) MINLEVERAGE

func (_VaultV2b *VaultV2bCallerSession) MINLEVERAGE() (*big.Int, error)

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

Solidity: function MIN_LEVERAGE() view returns(uint256)

func (*VaultV2bCallerSession) MarginFeeBasisPoints

func (_VaultV2b *VaultV2bCallerSession) MarginFeeBasisPoints() (*big.Int, error)

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

Solidity: function marginFeeBasisPoints() view returns(uint256)

func (*VaultV2bCallerSession) MaxGasPrice

func (_VaultV2b *VaultV2bCallerSession) MaxGasPrice() (*big.Int, error)

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

Solidity: function maxGasPrice() view returns(uint256)

func (*VaultV2bCallerSession) MaxGlobalShortSizes

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) MaxLeverage

func (_VaultV2b *VaultV2bCallerSession) MaxLeverage() (*big.Int, error)

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

Solidity: function maxLeverage() view returns(uint256)

func (*VaultV2bCallerSession) MaxUsdgAmounts

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) MinProfitBasisPoints

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) MinProfitTime

func (_VaultV2b *VaultV2bCallerSession) MinProfitTime() (*big.Int, error)

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

Solidity: function minProfitTime() view returns(uint256)

func (*VaultV2bCallerSession) MintBurnFeeBasisPoints

func (_VaultV2b *VaultV2bCallerSession) MintBurnFeeBasisPoints() (*big.Int, error)

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

Solidity: function mintBurnFeeBasisPoints() view returns(uint256)

func (*VaultV2bCallerSession) PRICEPRECISION

func (_VaultV2b *VaultV2bCallerSession) PRICEPRECISION() (*big.Int, error)

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

Solidity: function PRICE_PRECISION() view returns(uint256)

func (*VaultV2bCallerSession) PoolAmounts

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) Positions

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) PriceFeed

func (_VaultV2b *VaultV2bCallerSession) PriceFeed() (common.Address, error)

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

Solidity: function priceFeed() view returns(address)

func (*VaultV2bCallerSession) ReservedAmounts

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) Router

func (_VaultV2b *VaultV2bCallerSession) Router() (common.Address, error)

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

Solidity: function router() view returns(address)

func (*VaultV2bCallerSession) ShortableTokens

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) StableFundingRateFactor

func (_VaultV2b *VaultV2bCallerSession) StableFundingRateFactor() (*big.Int, error)

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

Solidity: function stableFundingRateFactor() view returns(uint256)

func (*VaultV2bCallerSession) StableSwapFeeBasisPoints

func (_VaultV2b *VaultV2bCallerSession) StableSwapFeeBasisPoints() (*big.Int, error)

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

Solidity: function stableSwapFeeBasisPoints() view returns(uint256)

func (*VaultV2bCallerSession) StableTaxBasisPoints

func (_VaultV2b *VaultV2bCallerSession) StableTaxBasisPoints() (*big.Int, error)

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

Solidity: function stableTaxBasisPoints() view returns(uint256)

func (*VaultV2bCallerSession) StableTokens

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) SwapFeeBasisPoints

func (_VaultV2b *VaultV2bCallerSession) SwapFeeBasisPoints() (*big.Int, error)

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

Solidity: function swapFeeBasisPoints() view returns(uint256)

func (*VaultV2bCallerSession) TaxBasisPoints

func (_VaultV2b *VaultV2bCallerSession) TaxBasisPoints() (*big.Int, error)

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

Solidity: function taxBasisPoints() view returns(uint256)

func (*VaultV2bCallerSession) TokenBalances

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) TokenDecimals

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) TokenToUsdMin

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) TokenWeights

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) TotalTokenWeights

func (_VaultV2b *VaultV2bCallerSession) TotalTokenWeights() (*big.Int, error)

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

Solidity: function totalTokenWeights() view returns(uint256)

func (*VaultV2bCallerSession) USDGDECIMALS

func (_VaultV2b *VaultV2bCallerSession) USDGDECIMALS() (*big.Int, error)

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

Solidity: function USDG_DECIMALS() view returns(uint256)

func (*VaultV2bCallerSession) UsdToToken

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) UsdToTokenMax

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) UsdToTokenMin

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) Usdg

func (_VaultV2b *VaultV2bCallerSession) Usdg() (common.Address, error)

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

Solidity: function usdg() view returns(address)

func (*VaultV2bCallerSession) UsdgAmounts

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) UseSwapPricing

func (_VaultV2b *VaultV2bCallerSession) UseSwapPricing() (bool, error)

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

Solidity: function useSwapPricing() view returns(bool)

func (*VaultV2bCallerSession) ValidateLiquidation

func (_VaultV2b *VaultV2bCallerSession) 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 (*VaultV2bCallerSession) VaultUtils

func (_VaultV2b *VaultV2bCallerSession) VaultUtils() (common.Address, error)

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

Solidity: function vaultUtils() view returns(address)

func (*VaultV2bCallerSession) WhitelistedTokenCount

func (_VaultV2b *VaultV2bCallerSession) WhitelistedTokenCount() (*big.Int, error)

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

Solidity: function whitelistedTokenCount() view returns(uint256)

func (*VaultV2bCallerSession) WhitelistedTokens

func (_VaultV2b *VaultV2bCallerSession) 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 VaultV2bClosePosition

type VaultV2bClosePosition 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
}

VaultV2bClosePosition represents a ClosePosition event raised by the VaultV2b contract.

type VaultV2bClosePositionIterator

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

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

func (*VaultV2bClosePositionIterator) Close

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

func (*VaultV2bClosePositionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bClosePositionIterator) 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 VaultV2bCollectMarginFees

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

VaultV2bCollectMarginFees represents a CollectMarginFees event raised by the VaultV2b contract.

type VaultV2bCollectMarginFeesIterator

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

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

func (*VaultV2bCollectMarginFeesIterator) Close

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

func (*VaultV2bCollectMarginFeesIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bCollectMarginFeesIterator) 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 VaultV2bCollectSwapFees

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

VaultV2bCollectSwapFees represents a CollectSwapFees event raised by the VaultV2b contract.

type VaultV2bCollectSwapFeesIterator

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

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

func (*VaultV2bCollectSwapFeesIterator) Close

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

func (*VaultV2bCollectSwapFeesIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bCollectSwapFeesIterator) 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 VaultV2bDecreaseGuaranteedUsd

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

VaultV2bDecreaseGuaranteedUsd represents a DecreaseGuaranteedUsd event raised by the VaultV2b contract.

type VaultV2bDecreaseGuaranteedUsdIterator

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

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

func (*VaultV2bDecreaseGuaranteedUsdIterator) Close

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

func (*VaultV2bDecreaseGuaranteedUsdIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bDecreaseGuaranteedUsdIterator) 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 VaultV2bDecreasePoolAmount

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

VaultV2bDecreasePoolAmount represents a DecreasePoolAmount event raised by the VaultV2b contract.

type VaultV2bDecreasePoolAmountIterator

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

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

func (*VaultV2bDecreasePoolAmountIterator) Close

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

func (*VaultV2bDecreasePoolAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bDecreasePoolAmountIterator) 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 VaultV2bDecreasePosition

type VaultV2bDecreasePosition 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
}

VaultV2bDecreasePosition represents a DecreasePosition event raised by the VaultV2b contract.

type VaultV2bDecreasePositionIterator

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

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

func (*VaultV2bDecreasePositionIterator) Close

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

func (*VaultV2bDecreasePositionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bDecreasePositionIterator) 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 VaultV2bDecreaseReservedAmount

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

VaultV2bDecreaseReservedAmount represents a DecreaseReservedAmount event raised by the VaultV2b contract.

type VaultV2bDecreaseReservedAmountIterator

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

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

func (*VaultV2bDecreaseReservedAmountIterator) Close

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

func (*VaultV2bDecreaseReservedAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bDecreaseReservedAmountIterator) 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 VaultV2bDecreaseUsdgAmount

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

VaultV2bDecreaseUsdgAmount represents a DecreaseUsdgAmount event raised by the VaultV2b contract.

type VaultV2bDecreaseUsdgAmountIterator

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

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

func (*VaultV2bDecreaseUsdgAmountIterator) Close

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

func (*VaultV2bDecreaseUsdgAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bDecreaseUsdgAmountIterator) 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 VaultV2bDirectPoolDeposit

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

VaultV2bDirectPoolDeposit represents a DirectPoolDeposit event raised by the VaultV2b contract.

type VaultV2bDirectPoolDepositIterator

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

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

func (*VaultV2bDirectPoolDepositIterator) Close

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

func (*VaultV2bDirectPoolDepositIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bDirectPoolDepositIterator) 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 VaultV2bFilterer

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

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

func NewVaultV2bFilterer

func NewVaultV2bFilterer(address common.Address, filterer bind.ContractFilterer) (*VaultV2bFilterer, error)

NewVaultV2bFilterer creates a new log filterer instance of VaultV2b, bound to a specific deployed contract.

func (*VaultV2bFilterer) FilterBuyUSDG

func (_VaultV2b *VaultV2bFilterer) FilterBuyUSDG(opts *bind.FilterOpts) (*VaultV2bBuyUSDGIterator, 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 (*VaultV2bFilterer) FilterClosePosition

func (_VaultV2b *VaultV2bFilterer) FilterClosePosition(opts *bind.FilterOpts) (*VaultV2bClosePositionIterator, 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 (*VaultV2bFilterer) FilterCollectMarginFees

func (_VaultV2b *VaultV2bFilterer) FilterCollectMarginFees(opts *bind.FilterOpts) (*VaultV2bCollectMarginFeesIterator, error)

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

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

func (*VaultV2bFilterer) FilterCollectSwapFees

func (_VaultV2b *VaultV2bFilterer) FilterCollectSwapFees(opts *bind.FilterOpts) (*VaultV2bCollectSwapFeesIterator, error)

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

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

func (*VaultV2bFilterer) FilterDecreaseGuaranteedUsd

func (_VaultV2b *VaultV2bFilterer) FilterDecreaseGuaranteedUsd(opts *bind.FilterOpts) (*VaultV2bDecreaseGuaranteedUsdIterator, error)

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

Solidity: event DecreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2bFilterer) FilterDecreasePoolAmount

func (_VaultV2b *VaultV2bFilterer) FilterDecreasePoolAmount(opts *bind.FilterOpts) (*VaultV2bDecreasePoolAmountIterator, error)

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

Solidity: event DecreasePoolAmount(address token, uint256 amount)

func (*VaultV2bFilterer) FilterDecreasePosition

func (_VaultV2b *VaultV2bFilterer) FilterDecreasePosition(opts *bind.FilterOpts) (*VaultV2bDecreasePositionIterator, 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 (*VaultV2bFilterer) FilterDecreaseReservedAmount

func (_VaultV2b *VaultV2bFilterer) FilterDecreaseReservedAmount(opts *bind.FilterOpts) (*VaultV2bDecreaseReservedAmountIterator, error)

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

Solidity: event DecreaseReservedAmount(address token, uint256 amount)

func (*VaultV2bFilterer) FilterDecreaseUsdgAmount

func (_VaultV2b *VaultV2bFilterer) FilterDecreaseUsdgAmount(opts *bind.FilterOpts) (*VaultV2bDecreaseUsdgAmountIterator, error)

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

Solidity: event DecreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2bFilterer) FilterDirectPoolDeposit

func (_VaultV2b *VaultV2bFilterer) FilterDirectPoolDeposit(opts *bind.FilterOpts) (*VaultV2bDirectPoolDepositIterator, error)

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

Solidity: event DirectPoolDeposit(address token, uint256 amount)

func (*VaultV2bFilterer) FilterIncreaseGuaranteedUsd

func (_VaultV2b *VaultV2bFilterer) FilterIncreaseGuaranteedUsd(opts *bind.FilterOpts) (*VaultV2bIncreaseGuaranteedUsdIterator, error)

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

Solidity: event IncreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2bFilterer) FilterIncreasePoolAmount

func (_VaultV2b *VaultV2bFilterer) FilterIncreasePoolAmount(opts *bind.FilterOpts) (*VaultV2bIncreasePoolAmountIterator, error)

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

Solidity: event IncreasePoolAmount(address token, uint256 amount)

func (*VaultV2bFilterer) FilterIncreasePosition

func (_VaultV2b *VaultV2bFilterer) FilterIncreasePosition(opts *bind.FilterOpts) (*VaultV2bIncreasePositionIterator, 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 (*VaultV2bFilterer) FilterIncreaseReservedAmount

func (_VaultV2b *VaultV2bFilterer) FilterIncreaseReservedAmount(opts *bind.FilterOpts) (*VaultV2bIncreaseReservedAmountIterator, error)

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

Solidity: event IncreaseReservedAmount(address token, uint256 amount)

func (*VaultV2bFilterer) FilterIncreaseUsdgAmount

func (_VaultV2b *VaultV2bFilterer) FilterIncreaseUsdgAmount(opts *bind.FilterOpts) (*VaultV2bIncreaseUsdgAmountIterator, error)

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

Solidity: event IncreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2bFilterer) FilterLiquidatePosition

func (_VaultV2b *VaultV2bFilterer) FilterLiquidatePosition(opts *bind.FilterOpts) (*VaultV2bLiquidatePositionIterator, 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 (*VaultV2bFilterer) FilterSellUSDG

func (_VaultV2b *VaultV2bFilterer) FilterSellUSDG(opts *bind.FilterOpts) (*VaultV2bSellUSDGIterator, 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 (*VaultV2bFilterer) FilterSwap

func (_VaultV2b *VaultV2bFilterer) FilterSwap(opts *bind.FilterOpts) (*VaultV2bSwapIterator, 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 (*VaultV2bFilterer) FilterUpdateFundingRate

func (_VaultV2b *VaultV2bFilterer) FilterUpdateFundingRate(opts *bind.FilterOpts) (*VaultV2bUpdateFundingRateIterator, error)

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

Solidity: event UpdateFundingRate(address token, uint256 fundingRate)

func (*VaultV2bFilterer) FilterUpdatePnl

func (_VaultV2b *VaultV2bFilterer) FilterUpdatePnl(opts *bind.FilterOpts) (*VaultV2bUpdatePnlIterator, error)

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

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

func (*VaultV2bFilterer) FilterUpdatePosition

func (_VaultV2b *VaultV2bFilterer) FilterUpdatePosition(opts *bind.FilterOpts) (*VaultV2bUpdatePositionIterator, 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 (*VaultV2bFilterer) ParseBuyUSDG

func (_VaultV2b *VaultV2bFilterer) ParseBuyUSDG(log types.Log) (*VaultV2bBuyUSDG, 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 (*VaultV2bFilterer) ParseClosePosition

func (_VaultV2b *VaultV2bFilterer) ParseClosePosition(log types.Log) (*VaultV2bClosePosition, 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 (*VaultV2bFilterer) ParseCollectMarginFees

func (_VaultV2b *VaultV2bFilterer) ParseCollectMarginFees(log types.Log) (*VaultV2bCollectMarginFees, error)

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

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

func (*VaultV2bFilterer) ParseCollectSwapFees

func (_VaultV2b *VaultV2bFilterer) ParseCollectSwapFees(log types.Log) (*VaultV2bCollectSwapFees, error)

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

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

func (*VaultV2bFilterer) ParseDecreaseGuaranteedUsd

func (_VaultV2b *VaultV2bFilterer) ParseDecreaseGuaranteedUsd(log types.Log) (*VaultV2bDecreaseGuaranteedUsd, error)

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

Solidity: event DecreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2bFilterer) ParseDecreasePoolAmount

func (_VaultV2b *VaultV2bFilterer) ParseDecreasePoolAmount(log types.Log) (*VaultV2bDecreasePoolAmount, error)

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

Solidity: event DecreasePoolAmount(address token, uint256 amount)

func (*VaultV2bFilterer) ParseDecreasePosition

func (_VaultV2b *VaultV2bFilterer) ParseDecreasePosition(log types.Log) (*VaultV2bDecreasePosition, 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 (*VaultV2bFilterer) ParseDecreaseReservedAmount

func (_VaultV2b *VaultV2bFilterer) ParseDecreaseReservedAmount(log types.Log) (*VaultV2bDecreaseReservedAmount, error)

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

Solidity: event DecreaseReservedAmount(address token, uint256 amount)

func (*VaultV2bFilterer) ParseDecreaseUsdgAmount

func (_VaultV2b *VaultV2bFilterer) ParseDecreaseUsdgAmount(log types.Log) (*VaultV2bDecreaseUsdgAmount, error)

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

Solidity: event DecreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2bFilterer) ParseDirectPoolDeposit

func (_VaultV2b *VaultV2bFilterer) ParseDirectPoolDeposit(log types.Log) (*VaultV2bDirectPoolDeposit, error)

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

Solidity: event DirectPoolDeposit(address token, uint256 amount)

func (*VaultV2bFilterer) ParseIncreaseGuaranteedUsd

func (_VaultV2b *VaultV2bFilterer) ParseIncreaseGuaranteedUsd(log types.Log) (*VaultV2bIncreaseGuaranteedUsd, error)

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

Solidity: event IncreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2bFilterer) ParseIncreasePoolAmount

func (_VaultV2b *VaultV2bFilterer) ParseIncreasePoolAmount(log types.Log) (*VaultV2bIncreasePoolAmount, error)

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

Solidity: event IncreasePoolAmount(address token, uint256 amount)

func (*VaultV2bFilterer) ParseIncreasePosition

func (_VaultV2b *VaultV2bFilterer) ParseIncreasePosition(log types.Log) (*VaultV2bIncreasePosition, 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 (*VaultV2bFilterer) ParseIncreaseReservedAmount

func (_VaultV2b *VaultV2bFilterer) ParseIncreaseReservedAmount(log types.Log) (*VaultV2bIncreaseReservedAmount, error)

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

Solidity: event IncreaseReservedAmount(address token, uint256 amount)

func (*VaultV2bFilterer) ParseIncreaseUsdgAmount

func (_VaultV2b *VaultV2bFilterer) ParseIncreaseUsdgAmount(log types.Log) (*VaultV2bIncreaseUsdgAmount, error)

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

Solidity: event IncreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2bFilterer) ParseLiquidatePosition

func (_VaultV2b *VaultV2bFilterer) ParseLiquidatePosition(log types.Log) (*VaultV2bLiquidatePosition, 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 (*VaultV2bFilterer) ParseSellUSDG

func (_VaultV2b *VaultV2bFilterer) ParseSellUSDG(log types.Log) (*VaultV2bSellUSDG, 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 (*VaultV2bFilterer) ParseSwap

func (_VaultV2b *VaultV2bFilterer) ParseSwap(log types.Log) (*VaultV2bSwap, 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 (*VaultV2bFilterer) ParseUpdateFundingRate

func (_VaultV2b *VaultV2bFilterer) ParseUpdateFundingRate(log types.Log) (*VaultV2bUpdateFundingRate, error)

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

Solidity: event UpdateFundingRate(address token, uint256 fundingRate)

func (*VaultV2bFilterer) ParseUpdatePnl

func (_VaultV2b *VaultV2bFilterer) ParseUpdatePnl(log types.Log) (*VaultV2bUpdatePnl, error)

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

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

func (*VaultV2bFilterer) ParseUpdatePosition

func (_VaultV2b *VaultV2bFilterer) ParseUpdatePosition(log types.Log) (*VaultV2bUpdatePosition, 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 (*VaultV2bFilterer) WatchBuyUSDG

func (_VaultV2b *VaultV2bFilterer) WatchBuyUSDG(opts *bind.WatchOpts, sink chan<- *VaultV2bBuyUSDG) (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 (*VaultV2bFilterer) WatchClosePosition

func (_VaultV2b *VaultV2bFilterer) WatchClosePosition(opts *bind.WatchOpts, sink chan<- *VaultV2bClosePosition) (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 (*VaultV2bFilterer) WatchCollectMarginFees

func (_VaultV2b *VaultV2bFilterer) WatchCollectMarginFees(opts *bind.WatchOpts, sink chan<- *VaultV2bCollectMarginFees) (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 (*VaultV2bFilterer) WatchCollectSwapFees

func (_VaultV2b *VaultV2bFilterer) WatchCollectSwapFees(opts *bind.WatchOpts, sink chan<- *VaultV2bCollectSwapFees) (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 (*VaultV2bFilterer) WatchDecreaseGuaranteedUsd

func (_VaultV2b *VaultV2bFilterer) WatchDecreaseGuaranteedUsd(opts *bind.WatchOpts, sink chan<- *VaultV2bDecreaseGuaranteedUsd) (event.Subscription, error)

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

Solidity: event DecreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2bFilterer) WatchDecreasePoolAmount

func (_VaultV2b *VaultV2bFilterer) WatchDecreasePoolAmount(opts *bind.WatchOpts, sink chan<- *VaultV2bDecreasePoolAmount) (event.Subscription, error)

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

Solidity: event DecreasePoolAmount(address token, uint256 amount)

func (*VaultV2bFilterer) WatchDecreasePosition

func (_VaultV2b *VaultV2bFilterer) WatchDecreasePosition(opts *bind.WatchOpts, sink chan<- *VaultV2bDecreasePosition) (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 (*VaultV2bFilterer) WatchDecreaseReservedAmount

func (_VaultV2b *VaultV2bFilterer) WatchDecreaseReservedAmount(opts *bind.WatchOpts, sink chan<- *VaultV2bDecreaseReservedAmount) (event.Subscription, error)

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

Solidity: event DecreaseReservedAmount(address token, uint256 amount)

func (*VaultV2bFilterer) WatchDecreaseUsdgAmount

func (_VaultV2b *VaultV2bFilterer) WatchDecreaseUsdgAmount(opts *bind.WatchOpts, sink chan<- *VaultV2bDecreaseUsdgAmount) (event.Subscription, error)

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

Solidity: event DecreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2bFilterer) WatchDirectPoolDeposit

func (_VaultV2b *VaultV2bFilterer) WatchDirectPoolDeposit(opts *bind.WatchOpts, sink chan<- *VaultV2bDirectPoolDeposit) (event.Subscription, error)

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

Solidity: event DirectPoolDeposit(address token, uint256 amount)

func (*VaultV2bFilterer) WatchIncreaseGuaranteedUsd

func (_VaultV2b *VaultV2bFilterer) WatchIncreaseGuaranteedUsd(opts *bind.WatchOpts, sink chan<- *VaultV2bIncreaseGuaranteedUsd) (event.Subscription, error)

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

Solidity: event IncreaseGuaranteedUsd(address token, uint256 amount)

func (*VaultV2bFilterer) WatchIncreasePoolAmount

func (_VaultV2b *VaultV2bFilterer) WatchIncreasePoolAmount(opts *bind.WatchOpts, sink chan<- *VaultV2bIncreasePoolAmount) (event.Subscription, error)

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

Solidity: event IncreasePoolAmount(address token, uint256 amount)

func (*VaultV2bFilterer) WatchIncreasePosition

func (_VaultV2b *VaultV2bFilterer) WatchIncreasePosition(opts *bind.WatchOpts, sink chan<- *VaultV2bIncreasePosition) (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 (*VaultV2bFilterer) WatchIncreaseReservedAmount

func (_VaultV2b *VaultV2bFilterer) WatchIncreaseReservedAmount(opts *bind.WatchOpts, sink chan<- *VaultV2bIncreaseReservedAmount) (event.Subscription, error)

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

Solidity: event IncreaseReservedAmount(address token, uint256 amount)

func (*VaultV2bFilterer) WatchIncreaseUsdgAmount

func (_VaultV2b *VaultV2bFilterer) WatchIncreaseUsdgAmount(opts *bind.WatchOpts, sink chan<- *VaultV2bIncreaseUsdgAmount) (event.Subscription, error)

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

Solidity: event IncreaseUsdgAmount(address token, uint256 amount)

func (*VaultV2bFilterer) WatchLiquidatePosition

func (_VaultV2b *VaultV2bFilterer) WatchLiquidatePosition(opts *bind.WatchOpts, sink chan<- *VaultV2bLiquidatePosition) (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 (*VaultV2bFilterer) WatchSellUSDG

func (_VaultV2b *VaultV2bFilterer) WatchSellUSDG(opts *bind.WatchOpts, sink chan<- *VaultV2bSellUSDG) (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 (*VaultV2bFilterer) WatchSwap

func (_VaultV2b *VaultV2bFilterer) WatchSwap(opts *bind.WatchOpts, sink chan<- *VaultV2bSwap) (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 (*VaultV2bFilterer) WatchUpdateFundingRate

func (_VaultV2b *VaultV2bFilterer) WatchUpdateFundingRate(opts *bind.WatchOpts, sink chan<- *VaultV2bUpdateFundingRate) (event.Subscription, error)

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

Solidity: event UpdateFundingRate(address token, uint256 fundingRate)

func (*VaultV2bFilterer) WatchUpdatePnl

func (_VaultV2b *VaultV2bFilterer) WatchUpdatePnl(opts *bind.WatchOpts, sink chan<- *VaultV2bUpdatePnl) (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 (*VaultV2bFilterer) WatchUpdatePosition

func (_VaultV2b *VaultV2bFilterer) WatchUpdatePosition(opts *bind.WatchOpts, sink chan<- *VaultV2bUpdatePosition) (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 VaultV2bIncreaseGuaranteedUsd

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

VaultV2bIncreaseGuaranteedUsd represents a IncreaseGuaranteedUsd event raised by the VaultV2b contract.

type VaultV2bIncreaseGuaranteedUsdIterator

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

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

func (*VaultV2bIncreaseGuaranteedUsdIterator) Close

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

func (*VaultV2bIncreaseGuaranteedUsdIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bIncreaseGuaranteedUsdIterator) 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 VaultV2bIncreasePoolAmount

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

VaultV2bIncreasePoolAmount represents a IncreasePoolAmount event raised by the VaultV2b contract.

type VaultV2bIncreasePoolAmountIterator

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

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

func (*VaultV2bIncreasePoolAmountIterator) Close

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

func (*VaultV2bIncreasePoolAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bIncreasePoolAmountIterator) 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 VaultV2bIncreasePosition

type VaultV2bIncreasePosition 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
}

VaultV2bIncreasePosition represents a IncreasePosition event raised by the VaultV2b contract.

type VaultV2bIncreasePositionIterator

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

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

func (*VaultV2bIncreasePositionIterator) Close

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

func (*VaultV2bIncreasePositionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bIncreasePositionIterator) 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 VaultV2bIncreaseReservedAmount

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

VaultV2bIncreaseReservedAmount represents a IncreaseReservedAmount event raised by the VaultV2b contract.

type VaultV2bIncreaseReservedAmountIterator

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

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

func (*VaultV2bIncreaseReservedAmountIterator) Close

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

func (*VaultV2bIncreaseReservedAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bIncreaseReservedAmountIterator) 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 VaultV2bIncreaseUsdgAmount

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

VaultV2bIncreaseUsdgAmount represents a IncreaseUsdgAmount event raised by the VaultV2b contract.

type VaultV2bIncreaseUsdgAmountIterator

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

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

func (*VaultV2bIncreaseUsdgAmountIterator) Close

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

func (*VaultV2bIncreaseUsdgAmountIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bIncreaseUsdgAmountIterator) 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 VaultV2bLiquidatePosition

type VaultV2bLiquidatePosition 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
}

VaultV2bLiquidatePosition represents a LiquidatePosition event raised by the VaultV2b contract.

type VaultV2bLiquidatePositionIterator

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

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

func (*VaultV2bLiquidatePositionIterator) Close

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

func (*VaultV2bLiquidatePositionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bLiquidatePositionIterator) 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 VaultV2bRaw

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

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

func (*VaultV2bRaw) Call

func (_VaultV2b *VaultV2bRaw) 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 (*VaultV2bRaw) Transact

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

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

func (*VaultV2bRaw) Transfer

func (_VaultV2b *VaultV2bRaw) 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 VaultV2bSellUSDG

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

VaultV2bSellUSDG represents a SellUSDG event raised by the VaultV2b contract.

type VaultV2bSellUSDGIterator

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

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

func (*VaultV2bSellUSDGIterator) Close

func (it *VaultV2bSellUSDGIterator) Close() error

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

func (*VaultV2bSellUSDGIterator) Error

func (it *VaultV2bSellUSDGIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bSellUSDGIterator) Next

func (it *VaultV2bSellUSDGIterator) 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 VaultV2bSession

type VaultV2bSession struct {
	Contract     *VaultV2b         // 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
}

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

func (*VaultV2bSession) AddRouter

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) AdjustForDecimals

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) AllWhitelistedTokens

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) AllWhitelistedTokensLength

func (_VaultV2b *VaultV2bSession) AllWhitelistedTokensLength() (*big.Int, error)

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

Solidity: function allWhitelistedTokensLength() view returns(uint256)

func (*VaultV2bSession) ApprovedRouters

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) BASISPOINTSDIVISOR

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) BufferAmounts

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) BuyUSDG

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) ClearTokenConfig

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) CumulativeFundingRates

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) DecreasePosition

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) DirectPoolDeposit

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) ErrorController

func (_VaultV2b *VaultV2bSession) ErrorController() (common.Address, error)

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

Solidity: function errorController() view returns(address)

func (*VaultV2bSession) Errors

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) FUNDINGRATEPRECISION

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) FeeReserves

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) FundingInterval

func (_VaultV2b *VaultV2bSession) FundingInterval() (*big.Int, error)

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

Solidity: function fundingInterval() view returns(uint256)

func (*VaultV2bSession) FundingRateFactor

func (_VaultV2b *VaultV2bSession) FundingRateFactor() (*big.Int, error)

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

Solidity: function fundingRateFactor() view returns(uint256)

func (*VaultV2bSession) GetDelta

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetEntryFundingRate

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetFeeBasisPoints

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetFundingFee

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetGlobalShortDelta

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetMaxPrice

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetMinPrice

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetNextAveragePrice

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetNextFundingRate

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetNextGlobalShortAveragePrice

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetPosition

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetPositionDelta

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetPositionFee

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetPositionKey

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetPositionLeverage

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetRedemptionAmount

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetRedemptionCollateral

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetRedemptionCollateralUsd

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetTargetUsdgAmount

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GetUtilisation

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GlobalShortAveragePrices

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) GlobalShortSizes

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) Gov

func (_VaultV2b *VaultV2bSession) Gov() (common.Address, error)

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

Solidity: function gov() view returns(address)

func (*VaultV2bSession) GuaranteedUsd

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) HasDynamicFees

func (_VaultV2b *VaultV2bSession) HasDynamicFees() (bool, error)

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

Solidity: function hasDynamicFees() view returns(bool)

func (*VaultV2bSession) InManagerMode

func (_VaultV2b *VaultV2bSession) InManagerMode() (bool, error)

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

Solidity: function inManagerMode() view returns(bool)

func (*VaultV2bSession) InPrivateLiquidationMode

func (_VaultV2b *VaultV2bSession) InPrivateLiquidationMode() (bool, error)

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

Solidity: function inPrivateLiquidationMode() view returns(bool)

func (*VaultV2bSession) IncludeAmmPrice

func (_VaultV2b *VaultV2bSession) IncludeAmmPrice() (bool, error)

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

Solidity: function includeAmmPrice() view returns(bool)

func (*VaultV2bSession) IncreasePosition

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) Initialize

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) IsInitialized

func (_VaultV2b *VaultV2bSession) IsInitialized() (bool, error)

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

Solidity: function isInitialized() view returns(bool)

func (*VaultV2bSession) IsLeverageEnabled

func (_VaultV2b *VaultV2bSession) IsLeverageEnabled() (bool, error)

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

Solidity: function isLeverageEnabled() view returns(bool)

func (*VaultV2bSession) IsLiquidator

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) IsManager

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) IsSwapEnabled

func (_VaultV2b *VaultV2bSession) IsSwapEnabled() (bool, error)

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

Solidity: function isSwapEnabled() view returns(bool)

func (*VaultV2bSession) LastFundingTimes

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) LiquidatePosition

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) LiquidationFeeUsd

func (_VaultV2b *VaultV2bSession) LiquidationFeeUsd() (*big.Int, error)

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

Solidity: function liquidationFeeUsd() view returns(uint256)

func (*VaultV2bSession) MAXFEEBASISPOINTS

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) MAXFUNDINGRATEFACTOR

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) MAXLIQUIDATIONFEEUSD

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) MINFUNDINGRATEINTERVAL

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) MINLEVERAGE

func (_VaultV2b *VaultV2bSession) MINLEVERAGE() (*big.Int, error)

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

Solidity: function MIN_LEVERAGE() view returns(uint256)

func (*VaultV2bSession) MarginFeeBasisPoints

func (_VaultV2b *VaultV2bSession) MarginFeeBasisPoints() (*big.Int, error)

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

Solidity: function marginFeeBasisPoints() view returns(uint256)

func (*VaultV2bSession) MaxGasPrice

func (_VaultV2b *VaultV2bSession) MaxGasPrice() (*big.Int, error)

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

Solidity: function maxGasPrice() view returns(uint256)

func (*VaultV2bSession) MaxGlobalShortSizes

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) MaxLeverage

func (_VaultV2b *VaultV2bSession) MaxLeverage() (*big.Int, error)

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

Solidity: function maxLeverage() view returns(uint256)

func (*VaultV2bSession) MaxUsdgAmounts

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) MinProfitBasisPoints

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) MinProfitTime

func (_VaultV2b *VaultV2bSession) MinProfitTime() (*big.Int, error)

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

Solidity: function minProfitTime() view returns(uint256)

func (*VaultV2bSession) MintBurnFeeBasisPoints

func (_VaultV2b *VaultV2bSession) MintBurnFeeBasisPoints() (*big.Int, error)

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

Solidity: function mintBurnFeeBasisPoints() view returns(uint256)

func (*VaultV2bSession) PRICEPRECISION

func (_VaultV2b *VaultV2bSession) PRICEPRECISION() (*big.Int, error)

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

Solidity: function PRICE_PRECISION() view returns(uint256)

func (*VaultV2bSession) PoolAmounts

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) Positions

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) PriceFeed

func (_VaultV2b *VaultV2bSession) PriceFeed() (common.Address, error)

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

Solidity: function priceFeed() view returns(address)

func (*VaultV2bSession) RemoveRouter

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) ReservedAmounts

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) Router

func (_VaultV2b *VaultV2bSession) Router() (common.Address, error)

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

Solidity: function router() view returns(address)

func (*VaultV2bSession) SellUSDG

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetBufferAmount

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetError

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetErrorController

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetFees

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetFundingRate

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetGov

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetInManagerMode

func (_VaultV2b *VaultV2bSession) SetInManagerMode(_inManagerMode bool) (*types.Transaction, error)

SetInManagerMode is a paid mutator transaction binding the contract method 0x24b0c04d.

Solidity: function setInManagerMode(bool _inManagerMode) returns()

func (*VaultV2bSession) SetInPrivateLiquidationMode

func (_VaultV2b *VaultV2bSession) SetInPrivateLiquidationMode(_inPrivateLiquidationMode bool) (*types.Transaction, error)

SetInPrivateLiquidationMode is a paid mutator transaction binding the contract method 0xf07bbf77.

Solidity: function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) returns()

func (*VaultV2bSession) SetIsLeverageEnabled

func (_VaultV2b *VaultV2bSession) SetIsLeverageEnabled(_isLeverageEnabled bool) (*types.Transaction, error)

SetIsLeverageEnabled is a paid mutator transaction binding the contract method 0x7c2eb9f7.

Solidity: function setIsLeverageEnabled(bool _isLeverageEnabled) returns()

func (*VaultV2bSession) SetIsSwapEnabled

func (_VaultV2b *VaultV2bSession) SetIsSwapEnabled(_isSwapEnabled bool) (*types.Transaction, error)

SetIsSwapEnabled is a paid mutator transaction binding the contract method 0x30455ede.

Solidity: function setIsSwapEnabled(bool _isSwapEnabled) returns()

func (*VaultV2bSession) SetLiquidator

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetManager

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetMaxGasPrice

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetMaxGlobalShortSize

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetMaxLeverage

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetPriceFeed

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetTokenConfig

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetUsdgAmount

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SetVaultUtils

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) ShortableTokens

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) StableFundingRateFactor

func (_VaultV2b *VaultV2bSession) StableFundingRateFactor() (*big.Int, error)

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

Solidity: function stableFundingRateFactor() view returns(uint256)

func (*VaultV2bSession) StableSwapFeeBasisPoints

func (_VaultV2b *VaultV2bSession) StableSwapFeeBasisPoints() (*big.Int, error)

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

Solidity: function stableSwapFeeBasisPoints() view returns(uint256)

func (*VaultV2bSession) StableTaxBasisPoints

func (_VaultV2b *VaultV2bSession) StableTaxBasisPoints() (*big.Int, error)

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

Solidity: function stableTaxBasisPoints() view returns(uint256)

func (*VaultV2bSession) StableTokens

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) Swap

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) SwapFeeBasisPoints

func (_VaultV2b *VaultV2bSession) SwapFeeBasisPoints() (*big.Int, error)

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

Solidity: function swapFeeBasisPoints() view returns(uint256)

func (*VaultV2bSession) TaxBasisPoints

func (_VaultV2b *VaultV2bSession) TaxBasisPoints() (*big.Int, error)

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

Solidity: function taxBasisPoints() view returns(uint256)

func (*VaultV2bSession) TokenBalances

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) TokenDecimals

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) TokenToUsdMin

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) TokenWeights

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) TotalTokenWeights

func (_VaultV2b *VaultV2bSession) TotalTokenWeights() (*big.Int, error)

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

Solidity: function totalTokenWeights() view returns(uint256)

func (*VaultV2bSession) USDGDECIMALS

func (_VaultV2b *VaultV2bSession) USDGDECIMALS() (*big.Int, error)

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

Solidity: function USDG_DECIMALS() view returns(uint256)

func (*VaultV2bSession) UpdateCumulativeFundingRate

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) UpgradeVault

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) UsdToToken

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) UsdToTokenMax

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) UsdToTokenMin

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) Usdg

func (_VaultV2b *VaultV2bSession) Usdg() (common.Address, error)

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

Solidity: function usdg() view returns(address)

func (*VaultV2bSession) UsdgAmounts

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) UseSwapPricing

func (_VaultV2b *VaultV2bSession) UseSwapPricing() (bool, error)

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

Solidity: function useSwapPricing() view returns(bool)

func (*VaultV2bSession) ValidateLiquidation

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) VaultUtils

func (_VaultV2b *VaultV2bSession) VaultUtils() (common.Address, error)

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

Solidity: function vaultUtils() view returns(address)

func (*VaultV2bSession) WhitelistedTokenCount

func (_VaultV2b *VaultV2bSession) WhitelistedTokenCount() (*big.Int, error)

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

Solidity: function whitelistedTokenCount() view returns(uint256)

func (*VaultV2bSession) WhitelistedTokens

func (_VaultV2b *VaultV2bSession) 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 (*VaultV2bSession) WithdrawFees

func (_VaultV2b *VaultV2bSession) 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 VaultV2bSwap

type VaultV2bSwap 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
}

VaultV2bSwap represents a Swap event raised by the VaultV2b contract.

type VaultV2bSwapIterator

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

VaultV2bSwapIterator is returned from FilterSwap and is used to iterate over the raw logs and unpacked data for Swap events raised by the VaultV2b contract.

func (*VaultV2bSwapIterator) Close

func (it *VaultV2bSwapIterator) Close() error

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

func (*VaultV2bSwapIterator) Error

func (it *VaultV2bSwapIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bSwapIterator) Next

func (it *VaultV2bSwapIterator) 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 VaultV2bTransactor

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

VaultV2bTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewVaultV2bTransactor

func NewVaultV2bTransactor(address common.Address, transactor bind.ContractTransactor) (*VaultV2bTransactor, error)

NewVaultV2bTransactor creates a new write-only instance of VaultV2b, bound to a specific deployed contract.

func (*VaultV2bTransactor) AddRouter

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) BuyUSDG

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) ClearTokenConfig

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) DecreasePosition

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) DirectPoolDeposit

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) IncreasePosition

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) Initialize

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) LiquidatePosition

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) RemoveRouter

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SellUSDG

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetBufferAmount

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetError

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetErrorController

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetFees

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetFundingRate

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetGov

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetInManagerMode

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetInPrivateLiquidationMode

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetIsLeverageEnabled

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetIsSwapEnabled

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetLiquidator

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetManager

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetMaxGasPrice

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetMaxGlobalShortSize

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetMaxLeverage

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetPriceFeed

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetTokenConfig

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetUsdgAmount

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) SetVaultUtils

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) Swap

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) UpdateCumulativeFundingRate

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) UpgradeVault

func (_VaultV2b *VaultV2bTransactor) 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 (*VaultV2bTransactor) WithdrawFees

func (_VaultV2b *VaultV2bTransactor) 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 VaultV2bTransactorRaw

type VaultV2bTransactorRaw struct {
	Contract *VaultV2bTransactor // Generic write-only contract binding to access the raw methods on
}

VaultV2bTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*VaultV2bTransactorRaw) Transact

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

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

func (*VaultV2bTransactorRaw) Transfer

func (_VaultV2b *VaultV2bTransactorRaw) 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 VaultV2bTransactorSession

type VaultV2bTransactorSession struct {
	Contract     *VaultV2bTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

VaultV2bTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*VaultV2bTransactorSession) AddRouter

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) BuyUSDG

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) ClearTokenConfig

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) DecreasePosition

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) DirectPoolDeposit

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) IncreasePosition

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) Initialize

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) LiquidatePosition

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) RemoveRouter

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SellUSDG

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetBufferAmount

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetError

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetErrorController

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetFees

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetFundingRate

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetGov

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetInManagerMode

func (_VaultV2b *VaultV2bTransactorSession) SetInManagerMode(_inManagerMode bool) (*types.Transaction, error)

SetInManagerMode is a paid mutator transaction binding the contract method 0x24b0c04d.

Solidity: function setInManagerMode(bool _inManagerMode) returns()

func (*VaultV2bTransactorSession) SetInPrivateLiquidationMode

func (_VaultV2b *VaultV2bTransactorSession) SetInPrivateLiquidationMode(_inPrivateLiquidationMode bool) (*types.Transaction, error)

SetInPrivateLiquidationMode is a paid mutator transaction binding the contract method 0xf07bbf77.

Solidity: function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) returns()

func (*VaultV2bTransactorSession) SetIsLeverageEnabled

func (_VaultV2b *VaultV2bTransactorSession) SetIsLeverageEnabled(_isLeverageEnabled bool) (*types.Transaction, error)

SetIsLeverageEnabled is a paid mutator transaction binding the contract method 0x7c2eb9f7.

Solidity: function setIsLeverageEnabled(bool _isLeverageEnabled) returns()

func (*VaultV2bTransactorSession) SetIsSwapEnabled

func (_VaultV2b *VaultV2bTransactorSession) SetIsSwapEnabled(_isSwapEnabled bool) (*types.Transaction, error)

SetIsSwapEnabled is a paid mutator transaction binding the contract method 0x30455ede.

Solidity: function setIsSwapEnabled(bool _isSwapEnabled) returns()

func (*VaultV2bTransactorSession) SetLiquidator

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetManager

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetMaxGasPrice

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetMaxGlobalShortSize

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetMaxLeverage

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetPriceFeed

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetTokenConfig

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetUsdgAmount

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) SetVaultUtils

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) Swap

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) UpdateCumulativeFundingRate

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) UpgradeVault

func (_VaultV2b *VaultV2bTransactorSession) 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 (*VaultV2bTransactorSession) WithdrawFees

func (_VaultV2b *VaultV2bTransactorSession) 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 VaultV2bUpdateFundingRate

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

VaultV2bUpdateFundingRate represents a UpdateFundingRate event raised by the VaultV2b contract.

type VaultV2bUpdateFundingRateIterator

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

VaultV2bUpdateFundingRateIterator is returned from FilterUpdateFundingRate and is used to iterate over the raw logs and unpacked data for UpdateFundingRate events raised by the VaultV2b contract.

func (*VaultV2bUpdateFundingRateIterator) Close

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

func (*VaultV2bUpdateFundingRateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bUpdateFundingRateIterator) 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 VaultV2bUpdatePnl

type VaultV2bUpdatePnl struct {
	Key       [32]byte
	HasProfit bool
	Delta     *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

VaultV2bUpdatePnl represents a UpdatePnl event raised by the VaultV2b contract.

type VaultV2bUpdatePnlIterator

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

VaultV2bUpdatePnlIterator is returned from FilterUpdatePnl and is used to iterate over the raw logs and unpacked data for UpdatePnl events raised by the VaultV2b contract.

func (*VaultV2bUpdatePnlIterator) Close

func (it *VaultV2bUpdatePnlIterator) Close() error

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

func (*VaultV2bUpdatePnlIterator) Error

func (it *VaultV2bUpdatePnlIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bUpdatePnlIterator) Next

func (it *VaultV2bUpdatePnlIterator) 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 VaultV2bUpdatePosition

type VaultV2bUpdatePosition 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
}

VaultV2bUpdatePosition represents a UpdatePosition event raised by the VaultV2b contract.

type VaultV2bUpdatePositionIterator

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

VaultV2bUpdatePositionIterator is returned from FilterUpdatePosition and is used to iterate over the raw logs and unpacked data for UpdatePosition events raised by the VaultV2b contract.

func (*VaultV2bUpdatePositionIterator) Close

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

func (*VaultV2bUpdatePositionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*VaultV2bUpdatePositionIterator) 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