431 almf aave leverage merkl farm contract#433
Merged
Conversation
added 12 commits
November 10, 2025 16:54
|
Good luck! |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #433 +/- ##
==========================================
+ Coverage 95.66% 95.79% +0.13%
==========================================
Files 156 162 +6
Lines 13935 14533 +598
Branches 1316 1364 +48
==========================================
+ Hits 13331 13922 +591
- Misses 494 498 +4
- Partials 110 113 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
added 2 commits
November 17, 2025 21:22
…st for ALMFCalcLib.calcWithdrawAmounts
…ons/cache on CI to cache RPC between runs
a17
previously approved these changes
Nov 19, 2025
added 6 commits
November 19, 2025 21:03
Comment on lines
+44
to
+65
| function swap( | ||
| address atoken, | ||
| address tokenIn, | ||
| address tokenOut, | ||
| address recipient, | ||
| uint priceImpactTolerance | ||
| ) external { | ||
| uint amountIn = IERC20(tokenIn).balanceOf(address(this)); | ||
| uint amountOut; | ||
|
|
||
| IPool pool = IPool(IAToken(atoken).POOL()); | ||
| if (atoken == tokenIn) { | ||
| amountOut = pool.withdraw(tokenOut, amountIn, recipient); | ||
| } else { | ||
| IERC20(tokenIn).forceApprove(address(pool), amountIn); | ||
| pool.supply(tokenIn, amountIn, recipient, 0); | ||
| // AToken is rebased token - 1:1, same decimals | ||
| amountOut = amountIn; | ||
| } | ||
|
|
||
| emit SwapInPool(atoken, tokenIn, tokenOut, recipient, priceImpactTolerance, amountIn, amountOut); | ||
| } |
Check notice
Code scanning / Slither
Reentrancy vulnerabilities Low
added 11 commits
November 24, 2025 21:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ALMF 1.0, plasma: 0x027A98E492C6a16202914CC817fB6C3C88f834e0
ALMF 1.1, plasma: 0x96A059B23f3CA7C8685a52e6597D6398383Ea81F
ALMF 1.2, plasma: 0xe745791eA712dFB4a77274404A705664Ec6d20e0
BalancerV3Stable: 0xc73DBCFFADd43F87c0a37d39FA1460F5D80E3bca
CurvePlasma: 0xF93Ee7e1B1C5679974a004ce59DBdECEcB45475e
ERC4626: 0x63f83f6807C77FA33ccA12D9422B912C78f6F8ed
UniswapV3: 0x749D80930e0B6663c1D426dac0AA941836FDe53B