Skip to content

Commit

Permalink
update Mahalend
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouxianyuan committed Nov 20, 2023
1 parent 3973e62 commit 4b99bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/MahaLend_exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ contract ContractTest is Test {
function recoverDonatedFund() internal {
uint256 premiumPerFlashloan = uint256(1_160_272_591_443) * 5 / 10_000 + 1; // 0.05% flashlaon fee
premiumPerFlashloan -= (premiumPerFlashloan * 4 / 10_000); // 0.04% protocol fee
uint256 nextLiquidityIndex = premiumPerFlashloan * 55 + 1; // 60 times flashloan
uint256 nextLiquidityIndex = premiumPerFlashloan * 55 + 1; // 55 times flashloan
uint256 supplyAmount = nextLiquidityIndex / 2 + 1; // Use a rounding error greater than 0.5 for upward rounding and less than downward rounding

console.log("premiumPerFlashloan", premiumPerFlashloan);
Expand Down

0 comments on commit 4b99bbc

Please sign in to comment.