This change updates the site to include the amounts that an address owns in Uni v3 pools.
Since the pools haven't been created yet there are commented lines in holdings.ts that include the logic to actually add the token Amounts.
The uniV3Calculator class takes an address as input and returns an map that contains all assets and the amounts that this address holds in uniV3Pools.
The uniV3Provider class does all the on chain calls to calculate those amounts.
Other changes
fixed failing tests in Celo.test.ts, holdings.test.ts were numbers have changed
changed target allocation parameters
Tested
Added unit tests for calculation
tested it by uncommenting the lines in holdings.ts and replacing holder address with the address provided by oleksiy
"0x655133d8E90F8190ed5c1F0f3710F602800C0150"
and token address with cUSD
Description
This change updates the site to include the amounts that an address owns in Uni v3 pools. Since the pools haven't been created yet there are commented lines in holdings.ts that include the logic to actually add the token Amounts.
The uniV3Calculator class takes an address as input and returns an map that contains all assets and the amounts that this address holds in uniV3Pools. The uniV3Provider class does all the on chain calls to calculate those amounts.
Other changes
Tested
Related issues
Backwards compatibility
N/A
Documentation
N/A