-
Notifications
You must be signed in to change notification settings - Fork 193
[VEN-1193]: Whitelist Executors #606
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
base: develop
Are you sure you want to change the base?
Conversation
if (receiver != address(0) && whitelistedExecutors[receiver]) { | ||
return uint256(Error.NO_ERROR); | ||
} |
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.
Effects should take place even if the receiver is whitelisted, e.g. even though we defer the liquidity check, we still must add the borrower to the market if it's not there yet. Otherwise the user will have a borrow in the market but we won't account for this borrow in the liquidity check.
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.
Fixed
ensureListed(market); | ||
|
||
if (liquidator != address(0) && whitelistedExecutors[liquidator]) { | ||
return uint256(Error.NO_ERROR); |
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 we still call updateVenusSupplyIndex
, distributeSupplierVenus
to stop accruing XVS for the supply that no longer exists?
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.
Fixed
Co-authored-by: Jesus Lanchas <[email protected]>
|
…ther market
Description
Resolves #
Checklist