-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: optimize updating pools #110
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
870e6ba
fix: optimize updating pools
AStox 35fc002
fix: use const
AStox d8bf861
feat: use multicall
AStox 6f380e5
fix: switch to multicall3
AStox 3b9be33
fix: multicall working for pool data
AStox fed79be
fix: update multicall to aggregate across all pools and execute in co…
AStox 1d0760a
fix: use multicall for loan data
AStox 48ef388
fix: get pool update multicall working again
AStox a3cd5a7
fix: loans multicall working
AStox 7c8a95c
fix: invalid poolValuation serialize error
AStox f953ef1
fix: fix bug in processCalls
AStox decc19b
fix: filter out blocktower pools from maturity date operations
AStox 5041c5b
fix: use maker's multicall contract and update logic to better track …
AStox 8079564
fix: fix bug in processCalls that was overwriting results
AStox 68096f6
fix: fix loanrate and debt fetching
AStox e7c5657
fix: patch bug in paginatedGetter
AStox fd6779c
fix: patch bug in portfolioValuation and reserve tracking
AStox 8b46468
fix: add totalRepaid and totalBorrowed
AStox 488eb5c
fix: merge main
AStox ae5a067
fix: appease the linter
AStox aece85e
fix: move tinlake manifest to chains-tinlake
AStox 6185d19
fix: re-add bypass blocks
AStox 952dbe6
fix: trim multicall ABI
AStox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"components": [ | ||
{ "internalType": "address", "name": "target", "type": "address" }, | ||
{ "internalType": "bytes", "name": "callData", "type": "bytes" } | ||
], | ||
"internalType": "struct Multicall3.Call[]", | ||
"name": "calls", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"name": "aggregate", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "blockNumber", "type": "uint256" }, | ||
{ "internalType": "bytes[]", "name": "returnData", "type": "bytes[]" } | ||
], | ||
"stateMutability": "payable", | ||
"type": "function" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are exactly 100 entities to query, this while loop used to enter into an infinite loop. Now, we do one extra check to make sure there are no extra entities to fetch, and if not we exit the loop.