Closed ethzoomer closed 7 months ago
Example call outputs when trying to fetch reward tokens from the vAMM-2192/WETH pool, which has rewardsListLength of 32:
rewardsListLength
Old LpSugar: rewardsByAddress(3063, 0x0E9DA98191551c417D25BeBE69F2CbE47DfB186f) = []
rewardsByAddress(3063, 0x0E9DA98191551c417D25BeBE69F2CbE47DfB186f)
[]
New LpSugar: rewardsByAddress(3063, 0x0E9DA98191551c417D25BeBE69F2CbE47DfB186f) = [[3063,0x0E9DA98191551c417D25BeBE69F2CbE47DfB186f,259420435391307314566,0x9560e827aF36c94D2Ac33a39bCE1Fe78631088Db,0x0000000000000000000000000000000000000000,0xe86308a21c73bb40026959a3d5A93eB507F2B007]]
[[3063,0x0E9DA98191551c417D25BeBE69F2CbE47DfB186f,259420435391307314566,0x9560e827aF36c94D2Ac33a39bCE1Fe78631088Db,0x0000000000000000000000000000000000000000,0xe86308a21c73bb40026959a3d5A93eB507F2B007]]
Example call outputs when trying to fetch reward tokens from the vAMM-2192/WETH pool, which has
rewardsListLength
of 32:Old LpSugar:
rewardsByAddress(3063, 0x0E9DA98191551c417D25BeBE69F2CbE47DfB186f)
=[]
New LpSugar:
rewardsByAddress(3063, 0x0E9DA98191551c417D25BeBE69F2CbE47DfB186f)
=[[3063,0x0E9DA98191551c417D25BeBE69F2CbE47DfB186f,259420435391307314566,0x9560e827aF36c94D2Ac33a39bCE1Fe78631088Db,0x0000000000000000000000000000000000000000,0xe86308a21c73bb40026959a3d5A93eB507F2B007]]