WeightedIndex

Verified contract

Active on Ethereum with 2,234 txns
Deployed by via 0xd5d96212 at 19085796
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 $13,918,824.37
ERC-20
--
ERC-20
--
0x8261c31ab523f552424e611634c94441a4bffa825a6d8aaedae13c0bca8755ac
0x082cf413a370ddd8189bd6ad67a41aea8d475bd0d5db7e758b45b47eb3e399fa
0x70a2216dcabe2a25c744f5e2d199770a01f3bf9cf4fdbfca26c1772ac3785c0a
0x9ef958511d6e41cf974a2be2c332faf1d610cbb8b9aab38f766bb27de18db86c
0x8d902acc665835523454f7fce6ad90590a73080062ea8af503abc929455865ee
0x1d0d0448514caa489955b2ed85ac2779d9295a1d78a116d8d790525c775249f3
0x8be75d8e161539464cd59f45c50a396ae58f53f364ebe53188dc8043921b5bdf
0x17740a08a6d0bc601813eea7f10bc07d3108e5ebbdfb74e730eef039f3b21df1
0x8b4eec27f00d0b73d4395b963b12f76f45be1316b8a208eed9d63930f430eab3
0x01ab2072d2c14e05cfd7cfca3222b7f0892d0cf8c7ad22c3efa6293659514906

Functions
Getter at block 21283582
BOND_FEE(view returns (uint256)
150
DEBOND_FEE(view returns (uint256)
90
DOMAIN_SEPARATOR(view returns (bytes32)
0x413c554fa0805da6971540627a0746a1387a99d2af309c3fe1d9a77a756b4d2f
FLASH_FEE(view returns (uint256)
10
PAIRED_LP_TOKEN(view returns (address)
0x88e08adb69f2618adf1a3ff6cc43c671612d1ca4
created(view returns (uint256)
1706211851
decimals(view returns (uint8)
18
eip712Domain(view returns (bytes1 fieldsstring namestring versionuint256 chainIdaddress verifyingContractbytes32 saltuint256[] extensions)
(fields=0x0f, name=Pea Pod, version=1, chainId=1, verifyingContract=0x027ce48b9b346728557e8d420fe936a72bf9b1c7, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
fees(view returns (uint256 burnuint256 bonduint256 debonduint256 buyuint256 selluint256 partner)
(burn=5000, bond=150, debond=90, buy=50, sell=50, partner=0)
getAllAssets(view returns (struct IDecentralizedIndexIndexAssetInfo[])
[(0x02f92800f57bcd74066f5709f1daa1a4302df875, 100000000000000000000, 0, 0x0000000000000000000000000000000000000000, 79228162514264337593543950336000000000000000000)]
 
getIdxPriceUSDX96(view returns (uint256uint256)
indexType(view returns (uint8)
0
lpRewardsToken(view returns (address)
0x02f92800f57bcd74066f5709f1daa1a4302df875
lpStakingPool(view returns (address)
0xe8ed30b29ee7839a5bab8966515f897e7576afa7
name(view returns (string)
Pea Pod
partner(view returns (address)
0x0000000000000000000000000000000000000000
symbol(view returns (string)
pPEAS
totalSupply(view returns (uint256)
2012636077061023484912582
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