Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Override asset configs for multiple collaterals #186

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dglowinski
Copy link
Contributor

No description provided.

@dglowinski dglowinski force-pushed the override-asset-configs-multiple-collaterals branch from 03a053c to 8ffc774 Compare February 20, 2023 08:36
TODO Show resolved Hide resolved
contracts/modules/Governance.sol Outdated Show resolved Hide resolved
contracts/views/EulerGeneralView.sol Outdated Show resolved Hide resolved
contracts/views/EulerGeneralView.sol Outdated Show resolved Hide resolved
contracts/modules/RiskManager.sol Outdated Show resolved Hide resolved
contracts/Storage.sol Show resolved Hide resolved
contracts/modules/RiskManager.sol Outdated Show resolved Hide resolved
contracts/modules/Liquidation.sol Outdated Show resolved Hide resolved
contracts/Storage.sol Show resolved Hide resolved
contracts/modules/Liquidation.sol Outdated Show resolved Hide resolved
contracts/modules/Liquidation.sol Outdated Show resolved Hide resolved
contracts/modules/Liquidation.sol Outdated Show resolved Hide resolved
contracts/modules/Liquidation.sol Show resolved Hide resolved
contracts/modules/Liquidation.sol Outdated Show resolved Hide resolved
contracts/modules/Liquidation.sol Outdated Show resolved Hide resolved
contracts/modules/Liquidation.sol Show resolved Hide resolved
liqOpp.yield = collateralBalance;
}
if (liqLocs.collateralBalance < liqOpp.yield) {
liqOpp.repay = liqLocs.collateralBalance * 1e18 / liqOpp.conversionRate;
Copy link
Collaborator

@kasperpawlowski kasperpawlowski Feb 28, 2023

Choose a reason for hiding this comment

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

maybe I don't see something, but does liqOpp.repay have to be limited here? although not profitable, if the liquidator wants to repay more than the value of the collateral seized, why do we stop them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Possibly we'd want to allow more repay, but I think the place to handle it would be in executeLiquidation. We can discuss it, but I don't think it's in scope

@dglowinski dglowinski force-pushed the override-asset-configs-multiple-collaterals branch 4 times, most recently from 967a7ce to e9a6ca6 Compare March 9, 2023 13:49
@dglowinski dglowinski force-pushed the override-asset-configs-multiple-collaterals branch from e9a6ca6 to b835b05 Compare March 10, 2023 09:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants