Skip to content

Commit

Permalink
feat: block number support
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsains committed Oct 24, 2023
1 parent beb9458 commit 51b607b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions src/adapters/aave-v3/tests/snapshots/arbitrum.profits.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"withdrawals": "0.0",
"depositsRaw": "0n",
"deposits": "0.0",
"startPositionValueRaw": "75374552376746320n",
"startPositionValue": "0.07537455237674632",
"endPositionValueRaw": "75372781971535179n",
"endPositionValue": "0.075372781971535179"
"startPositionValueRaw": "75372781971535179n",
"startPositionValue": "0.075372781971535179",
"endPositionValueRaw": "75374552376746320n",
"endPositionValue": "0.07537455237674632"
},
"profit": "0.000001770405211141",
"iconUrl": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0x82aF49447D8a07e3bd95BD0d56f35241523fBab1/logo.png"
Expand All @@ -60,10 +60,10 @@
"withdrawals": "0.0",
"depositsRaw": "0n",
"deposits": "0.0",
"startPositionValueRaw": "768788n",
"startPositionValue": "0.00768788",
"endPositionValueRaw": "768786n",
"endPositionValue": "0.00768786"
"startPositionValueRaw": "768786n",
"startPositionValue": "0.00768786",
"endPositionValueRaw": "768788n",
"endPositionValue": "0.00768788"
},
"profit": "0.00000002",
"iconUrl": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f/logo.png"
Expand Down Expand Up @@ -118,10 +118,10 @@
"withdrawals": "0.0",
"depositsRaw": "0n",
"deposits": "0.0",
"startPositionValueRaw": "204818507090799477514n",
"startPositionValue": "204.818507090799477514",
"endPositionValueRaw": "204756473738483326636n",
"endPositionValue": "204.756473738483326636"
"startPositionValueRaw": "204756473738483326636n",
"startPositionValue": "204.756473738483326636",
"endPositionValueRaw": "204818507090799477514n",
"endPositionValue": "204.818507090799477514"
},
"profit": "-0.062033352316150878",
"iconUrl": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1/logo.png"
Expand All @@ -133,4 +133,4 @@
"toBlock": 142290717
}
]
}
}
2 changes: 1 addition & 1 deletion src/adapters/lido/tests/snapshots/ethereum.prices.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion src/core/utils/multicall.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ describe('MulticallQueue', () => {
} as unknown as Multicall,
})
await multicall.queueCall({ to: '0x', data: '0x' }).catch((error) => {
expect(error).toEqual({ message: 'Multicall batch failed' })
expect(error).toEqual(new Error('Multicall batch failed'))
})

expect(spy).toHaveBeenCalled()
Expand Down

0 comments on commit 51b607b

Please sign in to comment.