WeightedIndex

Verified contract

Active on Ethereum with 1,461 txns
Deployed by via 0xe6e82583 at 19085457
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 5 additional slots
ERC-20
Value $1,122,926.43
ERC-20
--
0x644dd4aecb72807d55612e55e0cd8bec99cb4a6c17caaf73ef7012d38607a051
0x498cb82358fa27f9739950e54721f7fec524c4e27a099f4d72f0fcd6f774169d
0x92fa149556a94b3f5662e884cba26a64086bb97e77efd9853b4f572e47b51157
0x5275e37ecdcb882b6b61488028e512fc4ba23532e99fedc6e261f80ac07fc9ac
0xf97013cfd1cfc17813faa0294632466905c24d97bc018c551c4a27c58347cb9c
0x0be1bd019d4707a8322a5d0d62b01eb40dfc84aa8b644d3f00525f259309ddf2
0x9634ba02bca871f9b6e90c04160139ee1f9b1d542c29bc88483db0348067690d
0x512b38449b815f772d3a6a12ce8cd73dac9f365b64e6a64360d5184a086df6a7
0x76eb4986e6eec39eea821cf1570f62f8f9b68f0ccc6223e57854685f02589e25
0x6040c271163e638ae2194f808a3d05c4ba1fe0dc1166299eeb4e4b5d6463cefe

Functions
Getter at block 21157651
BOND_FEE(view returns (uint256)
70
DEBOND_FEE(view returns (uint256)
70
DOMAIN_SEPARATOR(view returns (bytes32)
0x5e40420ae1144b13676c65be012c89abc2d6a74e3abbf31022adc466554c158d
FLASH_FEE(view returns (uint256)
10
PAIRED_LP_TOKEN(view returns (address)
0x6b175474e89094c44da98b954eedeac495271d0f
created(view returns (uint256)
1706207735
decimals(view returns (uint8)
18
eip712Domain(view returns (bytes1 fieldsstring namestring versionuint256 chainIdaddress verifyingContractbytes32 saltuint256[] extensions)
(fields=0x0f, name=OHM Pod, version=1, chainId=1, verifyingContract=0x88e08adb69f2618adf1a3ff6cc43c671612d1ca4, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
fees(view returns (uint256 burnuint256 bonduint256 debonduint256 buyuint256 selluint256 partner)
(burn=4500, bond=70, debond=70, buy=20, sell=20, partner=500)
getAllAssets(view returns (struct IDecentralizedIndexIndexAssetInfo[])
[(0x64aa3364f17a4d01c6f1751fd97c2bd3d7e7f1d5, 100000000000000000000, 0, 0x0000000000000000000000000000000000000000, 79228162514264337593543950336000000000)]
 
getIdxPriceUSDX96(view returns (uint256uint256)
indexType(view returns (uint8)
0
lpRewardsToken(view returns (address)
0x02f92800f57bcd74066f5709f1daa1a4302df875
lpStakingPool(view returns (address)
0x9034dc9b62d62408010adc31203c66a9c1d73180
name(view returns (string)
OHM Pod
partner(view returns (address)
0x73b1961f3fb68eda8bb66c96ffaf2b17dc9715c6
symbol(view returns (string)
pOHM
totalSupply(view returns (uint256)
67038386019191659613524
Read-only
allowance(address owneraddress spenderview returns (uint256)
balanceOf(address accountview returns (uint256)
getInitialAmount(address _sourceTokenuint256 _sourceAmountaddress _targetTokenview returns (uint256)
getTokenPriceUSDX96(address _tokenview returns (uint256)
indexTokens(uint256view returns (address tokenuint256 weightinguint256 basePriceUSDX96address c1uint256 q1)
isAsset(address _tokenview returns (bool)
nonces(address ownerview returns (uint256)
State-modifying
addLiquidityV2(uint256 _idxLPTokensuint256 _pairedLPTokensuint256 _slippageuint256 _deadline
approve(address spenderuint256 amountreturns (bool)
bond(address _tokenuint256 _amountuint256 _amountMintMin
burn(uint256 _amount
debond(uint256 _amountaddress[]uint8[]
decreaseAllowance(address spenderuint256 subtractedValuereturns (bool)
flash(address _recipientaddress _tokenuint256 _amountbytes _data
increaseAllowance(address spenderuint256 addedValuereturns (bool)
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
processPreSwapFeesAndSwap(
removeLiquidityV2(uint256 _lpTokensuint256 _minIdxTokensuint256 _minPairedLpTokenuint256 _deadline
rescueERC20(address _token
rescueETH(
setPartner(address _partner
setPartnerFee(uint256 _fee
transfer(address touint256 amountreturns (bool)
transferFrom(address fromaddress touint256 amountreturns (bool)
Events
AddLiquidity(address indexed walletuint256 amountTokensuint256 amountDAI
Approval(address indexed owneraddress indexed spenderuint256 value
Bond(address indexed walletaddress indexed tokenuint256 amountTokensBondeduint256 amountTokensMinted
Create(address indexed newIdxaddress indexed wallet
Debond(address indexed walletuint256 amountDebonded
EIP712DomainChanged(
FlashLoan(address indexed executoraddress indexed recipientaddress tokenuint256 amount
RemoveLiquidity(address indexed walletuint256 amountLiquidity
Transfer(address indexed fromaddress indexed touint256 value
Constructor
constructor(string _namestring _symbolstruct IDecentralizedIndexFees _feesaddress[] _tokensuint256[] _weightsaddress _partneraddress _pairedLpTokenaddress _lpRewardsTokenaddress _v2Routerbool _stakeRestriction
Fallback and receive

This contract contains no fallback and receive objects.

Errors
InvalidShortString(
StringTooLong(string str