-
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
RC9 Updates #81
RC9 Updates #81
Conversation
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.
Some comments inline.
schema.graphql
Outdated
@@ -713,7 +716,7 @@ type Position @entity { | |||
tokenId: BigInt # tokenId | |||
indexes: [PositionLend!]! # list of PositionLends which constitute a position | |||
owner: Bytes! # address of the position owner | |||
pool: Bytes! # address of the pool that the position is associated with |
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.
Should also add a poolAddress
Bytes here, so consumers can filter positions by pool.
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.
This change was already made to Develop by Tim and was accidentally pulled in again here. Can add the additional param as part of the RC9 updates.
@@ -193,6 +193,8 @@ type Loan @entity { | |||
liquidationAuction: LiquidationAuction | |||
# collateral tokens deposited in a pool by the borrower | |||
collateralPledged: BigDecimal! | |||
# borrower's threshold price in t0 terms | |||
thresholdPrice: BigDecimal! |
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.
Should probably name this t0thresholdPrice
, consistent with t0debt
.
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 accordingly
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.
Just one nit regarding case of a schema field.
schema.graphql
Outdated
@@ -194,7 +194,7 @@ type Loan @entity { | |||
# collateral tokens deposited in a pool by the borrower | |||
collateralPledged: BigDecimal! | |||
# borrower's threshold price in t0 terms | |||
thresholdPrice: BigDecimal! | |||
t0ThresholdPrice: BigDecimal! |
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.
nit: We kept a lowercase d
in t0debt
. Should t
be lowercase here? Or should we rename t0Debt
?
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.
We're returning a t0Np
in the contracts and had the mismatch there previously. Updating to t0Debt
feels more correct but fine lowercasing
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.
Either way is fine with me, and happy to leave it for a future PR if desired.
Need ajna-finance/ajna-core#1017 to be merged first in order to update the ABI |
copy-abis.sh
and ran it. Forge compiler output seems to have changed slightly, but tests run fine.ThresholdPrice
toLoan
andLiquidationAuction
entitiest0Np
toLoan
entities.auctionInfo
calls and tests to account for the interface changeborrowerInfo
calls and tests