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

Feature: handle pre liquidations #181

Draft
wants to merge 8 commits into
base: next
Choose a base branch
from

Conversation

Jean-Grimal
Copy link
Collaborator

@Jean-Grimal Jean-Grimal commented Nov 27, 2024

Pre-liquidation tests are on the way.

Copy link

linear bot commented Nov 27, 2024

@Jean-Grimal Jean-Grimal changed the base branch from main to next December 2, 2024 17:24
) {
const preLiquidationParams = preLiquidation.preLiquidationParams;
const lltv = preLiquidationParams.preLltv;
const preLltv = preLiquidationParams.preLltv;
Copy link
Collaborator

Choose a reason for hiding this comment

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

lltv and preLltv both use preLiquidationParams.preLltv; is this expected ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, nice catch

address: preLiquidationFactoryConfigs[chainId].address,
fromBlock: preLiquidationFactoryConfigs[chainId].deploymentBlock,
toBlock: BigInt(head),
event: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

it would be worth moving the definition to the abi.ts file to make this file more readable

address: addresses[chainId].morpho,
fromBlock: BigInt(factoryDeploymentBlock),
toBlock: BigInt(head),
event: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

same here

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