Skip to content
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

Merged
merged 5 commits into from
Dec 20, 2023
Merged

RC9 Updates #81

merged 5 commits into from
Dec 20, 2023

Conversation

MikeHathaway
Copy link
Contributor

@MikeHathaway MikeHathaway commented Dec 7, 2023

  • Updated copy-abis.sh and ran it. Forge compiler output seems to have changed slightly, but tests run fine.
  • Added ThresholdPrice to Loan and LiquidationAuction entities
  • Added t0Np to Loan entities.
  • Updated auctionInfo calls and tests to account for the interface change
  • Updated borrowerInfo calls and tests

Copy link
Contributor

@EdNoepel EdNoepel left a 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
Copy link
Contributor

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.

Copy link
Contributor Author

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!
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated accordingly

schema.graphql Outdated Show resolved Hide resolved
src/utils/position.ts Outdated Show resolved Hide resolved
@MikeHathaway MikeHathaway changed the base branch from info-multicall-v2 to develop December 8, 2023 15:34
@MikeHathaway MikeHathaway changed the base branch from develop to info-multicall-v2 December 8, 2023 15:34
Copy link
Contributor

@EdNoepel EdNoepel left a 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!
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

@MikeHathaway
Copy link
Contributor Author

Need ajna-finance/ajna-core#1017 to be merged first in order to update the ABI

@EdNoepel EdNoepel merged commit da9e59a into info-multicall-v2 Dec 20, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants