velodrome-finance / sugar

Sugar makes Velodrome devs life sweeter 🍭
Other
47 stars 26 forks source link

fix: gauge rewards with >16 unique bribes #60

Closed ethzoomer closed 7 months ago

ethzoomer commented 7 months ago

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]]