-
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
Add PoolInfoUtilsMulticall support in updatePool #77
Merged
Merged
Changes from 17 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
468b4ac
remove momp from pool; add referencePrice to liquidationAuction; remo…
6a17eef
remove dead code
8ff8d29
update abis and networks.json; remove alreadyTaken from auctionInfo
646c667
update ganache addresses
0779088
fix mock interface
814814b
update start block
86553bd
update remaining addresses
c85d287
nit fix new line
2482d50
update local env version
1cf05f8
add initial PoolInfoUtilsMulti support
dc8a688
update handleAddQuoteToken to use updatePoolMulticall:
c048fc2
expand pool details multicall
b9d1566
add initial mock pool details call
f7e4479
use new updatePool method for all events; update mocks and fix tests
4ded726
add poolBalanceDetails to updatePool (#78)
MikeHathaway 76c73ed
merge latest
a89dcac
Merge branch 'info-multicall-v2' of github.com:ajna-finance/subgraph …
2739272
remove dead comments; update goerli poolinfoutils multi address
aceb109
Merge branch 'develop' of github.com:ajna-finance/subgraph into info-…
da9e59a
RC9 Updates (#81)
MikeHathaway c6fadf7
updated goerli and base addresses
EdNoepel 41288b1
update ABIs
EdNoepel 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,319 @@ | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "contract PoolInfoUtils", | ||
"name": "poolInfoUtils_", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "string[]", | ||
"name": "functionSignatures_", | ||
"type": "string[]" | ||
}, | ||
{ | ||
"internalType": "string[]", | ||
"name": "args_", | ||
"type": "string[]" | ||
} | ||
], | ||
"name": "multicall", | ||
"outputs": [ | ||
{ | ||
"internalType": "bytes[]", | ||
"name": "results_", | ||
"type": "bytes[]" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "ajnaPool_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "index_", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "quoteTokenAddress_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "collateralTokenAddress_", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "isNFT_", | ||
"type": "bool" | ||
} | ||
], | ||
"name": "poolBalanceDetails", | ||
"outputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "debt", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "accruedDebt", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "debtInAuction", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "t0Debt2ToCollateral", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "depositUpToIndex", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "quoteTokenBalance", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "collateralTokenBalance", | ||
"type": "uint256" | ||
} | ||
], | ||
"internalType": "struct PoolInfoUtilsMulticall.PoolBalanceDetails", | ||
"name": "poolBalanceDetails_", | ||
"type": "tuple" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "ajnaPool_", | ||
"type": "address" | ||
} | ||
], | ||
"name": "poolDetailsMulticall", | ||
"outputs": [ | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "poolSize", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "loansCount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "address", | ||
"name": "maxBorrower", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "pendingInflator", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "pendingInterestFactor", | ||
"type": "uint256" | ||
} | ||
], | ||
"internalType": "struct PoolInfoUtilsMulticall.PoolLoansInfo", | ||
"name": "poolLoansInfo_", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "hpb", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "hpbIndex", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "htp", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "htpIndex", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "lup", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "lupIndex", | ||
"type": "uint256" | ||
} | ||
], | ||
"internalType": "struct PoolInfoUtilsMulticall.PoolPriceInfo", | ||
"name": "poolPriceInfo_", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "lenderInterestMargin", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "borrowFeeRate", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "depositFeeRate", | ||
"type": "uint256" | ||
} | ||
], | ||
"internalType": "struct PoolInfoUtilsMulticall.PoolRatesAndFees", | ||
"name": "poolRatesAndFees_", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "reserves", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "claimableReserves", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "claimableReservesRemaining", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "auctionPrice", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "timeRemaining", | ||
"type": "uint256" | ||
} | ||
], | ||
"internalType": "struct PoolInfoUtilsMulticall.PoolReservesInfo", | ||
"name": "poolReservesInfo_", | ||
"type": "tuple" | ||
}, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "poolMinDebtAmount", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "poolCollateralization", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "poolActualUtilization", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "poolTargetUtilization", | ||
"type": "uint256" | ||
} | ||
], | ||
"internalType": "struct PoolInfoUtilsMulticall.PoolUtilizationInfo", | ||
"name": "poolUtilizationInfo_", | ||
"type": "tuple" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "poolInfoUtils", | ||
"outputs": [ | ||
{ | ||
"internalType": "contract PoolInfoUtils", | ||
"name": "", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "address", | ||
"name": "ajnaPool_", | ||
"type": "address" | ||
} | ||
], | ||
"name": "poolRatesAndFeesMulticall", | ||
"outputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "lenderInterestMargin", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "borrowFeeRate", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "depositFeeRate", | ||
"type": "uint256" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"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
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.
That's the address for the old contract, before your most recent changes to the PR. The new one is at
0x49B8AAd62e1BBBA1A69CA8B3E24383F29828F718
.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.
Updated to most recent deployment address