-
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
Feature: handle pre liquidations #181
base: next
Are you sure you want to change the base?
Conversation
) { | ||
const preLiquidationParams = preLiquidation.preLiquidationParams; | ||
const lltv = preLiquidationParams.preLltv; | ||
const preLltv = preLiquidationParams.preLltv; |
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.
lltv
and preLltv
both use preLiquidationParams.preLltv
; is this expected ?
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.
No, nice catch
address: preLiquidationFactoryConfigs[chainId].address, | ||
fromBlock: preLiquidationFactoryConfigs[chainId].deploymentBlock, | ||
toBlock: BigInt(head), | ||
event: { |
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.
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: { |
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.
same here
Pre-liquidation tests are on the way.