We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b40da0 commit c749af8Copy full SHA for c749af8
packages/treasury/src/vault.js
@@ -100,7 +100,10 @@ export function makeVaultKit(
100
);
101
102
// floorDivide because we want the debt ceiling lower
103
- return floorDivideBy(getAmountOut(quoteAmount), manager.getInitialMargin());
+ return floorDivideBy(
104
+ getAmountOut(quoteAmount),
105
+ manager.getLiquidationMargin(),
106
+ );
107
}
108
109
async function assertSufficientCollateral(collateralAmount, wantedRun) {
0 commit comments