WeightedIndex

Verified contract

Active on Base with 38 txns
Deployed by via 0x196f1b19 at 23244552
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $20,309.69
ERC-20
--
0xb332c03687d04cbccbb67a06f9d0ab874e406baed2a0408668125ed82d2f3607
0x99c92e601849d22d54d28771567237a6aca1eee3fcaef8f93a9b61bcf4e5045c
0xc7735c48e88f64e479fb1990dbfa630c64bfd26400fcd6bfd07529461cf11a3a
0x0ae3547a8373ca324b0248a230fd29b4867989fd51eddbf75678f7e084d762e1
0x55a0f7b9aa30c06db97ab38b4271a174b1cedfb6b9440759792ac5acdd5cd3bf
0x3b5fcd0f649141c07a808049980e6335f3fd2c9eb2a1200ed4369a8c422f8eb5
0x5a180259d3d7a361d2edbd7965b398da03635264bf2e1e260d9e66667c09bba1
0x745219f58cb9a37f69c676043def07663558f7457fef206436a95d911d795831
0x070dac733e320998f32d777ed40d2ef02132625680af6bcb7c6d64375f459b9d
0x0e4edf7a23187dedc4e28d082d6c363c568ac1173b09d0344f20e1864eee9c6a

Functions
Getter at block 23609307
BOND_FEE(view returns (uint16)
200
DEBOND_FEE(view returns (uint16)
200
DEX_HANDLER(view returns (address)
0xb9f88534d856dc3c6785f47a0c6944b71d1ff944
DOMAIN_SEPARATOR(view returns (bytes32)
0xf031b900c9d4a868c65681901a93f9afe75102c9a77fb90ab32a76b2ce16e3de
FLASH_FEE_AMOUNT_DAI(view returns (uint256)
10000000
PAIRED_LP_TOKEN(view returns (address)
0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
config(view returns (address partnerbool hasTransferTaxbool blacklistTKNpTKNPoolV2)
(partner=0x0000000000000000000000000000000000000000, hasTransferTax=false, blacklistTKNpTKNPoolV2=false)
created(view returns (uint256)
1733278451
decimals(view returns (uint8)
18
eip712Domain(view returns (bytes1 fieldsstring namestring versionuint256 chainIdaddress verifyingContractbytes32 saltuint256[] extensions)
(fields=0x0f, name=CHAOS (BASE), version=1, chainId=8453, verifyingContract=0xf07797efa284a470bdd5b51ea1eee6f554236c50, salt=0x0000000000000000000000000000000000000000000000000000000000000000, extensions=[])
fees(view returns (uint16 burnuint16 bonduint16 debonduint16 buyuint16 selluint16 partner)
(burn=2000, bond=200, debond=200, buy=400, sell=400, partner=0)
getAllAssets(view returns (struct IDecentralizedIndexIndexAssetInfo[])
[(0x20d704099b62ada091028bcfc44445041ed16f09, 100000000000000000000, 0, 0x0000000000000000000000000000000000000000, 79228162514264337593543950336000000000000000000)]
 
getIdxPriceUSDX96(view returns (uint256uint256)
indexType(view returns (uint8)
0
lpRewardsToken(view returns (address)
0x02f92800f57bcd74066f5709f1daa1a4302df875
lpStakingPool(view returns (address)
0x6694ee52fb7775d43fe8d9f0e5c4b234a607e8e2
name(view returns (string)
CHAOS (BASE)
partner(view returns (address)
0x0000000000000000000000000000000000000000
symbol(view returns (string)
pCHAOS
totalSupply(view returns (uint256)
344948545007371050693427644
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 _deadlinereturns (uint256)
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)
initialize(
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
processPreSwapFeesAndSwap(
removeLiquidityV2(uint256 _lpTokensuint256 _minIdxTokensuint256 _minPairedLpTokenuint256 _deadline
rescueERC20(address _token
rescueETH(
setPartner(address _partner
setPartnerFee(uint16 _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
Initialize(address indexed walletaddress v2Pool
RemoveLiquidity(address indexed walletuint256 amountLiquidity
SetPartner(address indexed walletaddress newPartner
SetPartnerFee(address indexed walletuint16 newFee
Transfer(address indexed fromaddress indexed touint256 value
Constructor
constructor(string _namestring _symbolstruct IDecentralizedIndexConfig _configstruct IDecentralizedIndexFees _feesaddress[] _tokensuint256[] _weightsaddress _pairedLpTokenaddress _lpRewardsTokenaddress _dexHandlerbool _stakeRestriction
Fallback and receive
receive(
Errors
InvalidShortString(
StringTooLong(string str