Skip to content

Commit

Permalink
getSubscribeNav params time to millisecond
Browse files Browse the repository at this point in the history
  • Loading branch information
buchaoqun committed Mar 13, 2024
1 parent 2dbff5c commit 1adf7f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/solv-protocol-funds/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ async function borrowed(ts) {
const graphData = await getGraphData(ts, network, api);
if (graphData.pools.length > 0) {
const poolLists = graphData.pools;

var pools = poolLists.filter((value) => {
return depositAddress.length == 0 || depositAddress.indexOf(value.vault) == -1;
});

const poolConcretes = await concrete(pools, api);
const nav = await api.multiCall({
abi: abi.getSubscribeNav,
calls: pools.map((index) => ({
target: index.navOracle,
params: [index.poolId, ts]
params: [index.poolId, ts * 1000]
})),
})

Expand Down

0 comments on commit 1adf7f1

Please sign in to comment.