~/pushd/gh$pushd read moonwell-fi/mamo-contractson the list
moonwell-fi/mamo-contracts
No description.
stars
19
forks
6
watchers
2
open issues
7
created
6 Mar 2025
last push
17h ago
GitHub ->Read from GitHub just now.
README
the first lines# Mamo Contracts
Enable users to deploy personal strategy contracts and let Mamo Agent manage their funds.
## System Flow
1. The `MamoStrategyRegistry` admin (`DEFAULT_ADMIN_ROLE`, a multisig - NOT the backend) whitelists a strategy implementation.
2. User requests Mamo to deploy a strategy for them.
3. Mamo deploys a strategy and calls `addStrategy` to register the strategy for the user.
4. User deposits funds directly into their strategy.
5. Mamo Backend calls updatePosition if it identifies a better yield in a determined market/vault.
6. Mamo Backend (or anyone) claims rewards on behalf of the strategy.
7. When rewards are claimed, the reward token balance for the strategy contract increases, so bots can swap rewards for the underlying token on behalf of the user using CowSwap:
- The user must first call `approveCowSwap` to approve the reward token for the vault relayer
- Cow Swap calls the isValidSignature function on the strategy contract to validate orders
- The strategy verifies the order parameters and checks that the price matches the Chainlink price within the set slippage tolerance using the SlippagePriceChecker
- Any bot can fulfill the order as long as the price is valid according to the SlippagePriceChecker
8. Backend (or anyone) can call depositIdleTokens to deposit any underlying funds currently in the contract into the strategies based on the split.
Ask a scout
a deep readDeepSeekDeepSeek . DeepSeek V4 Pro for the deep read
moonwell-fi is in the Tools and infra camp, which DeepSeek reads.
10 of 10 public reads left today. Holders get 3 a day.
No read kept yet.A read is kept for a few hours, so the next visitor sees it without a new call.
Scout calls and heat are information, not advice. They describe public GitHub activity and are never a signal to trade.
Recent commits
default branch- 33dadd: sherlock, halborn audits (#111) . Carlos
- 36dAudit (#58) . Carlos
- 36dci: keep LeveragedAeroSystemSetupTest out of the `make test` target . Carlos Beltran
- 37dfeat: LeveragedAeroVault (#66) . Carlos
- 37dfix(audit): Sherlock remediation - LP/Aerodrome, multi-market strategy, staking & oracle (#81) . Ana
- 100dfeat: MamoLeveragedAeroStrategy - per-user account wrapper for the Sherwood Aero LP strategy (#64) . Carlos
- 100dtest: pin non-contract-impl test against fork-mode EIP-7702 code at makeAddr . Carlos Beltran
- 100dstyle: forge fmt with the CI-pinned nightly (e520767) . Carlos Beltran
- 100dfix: remediate PR #64 review findings - gate depositIdle owner-or-backend . Carlos Beltran
- 100dfeat: MamoLeveragedAeroStrategy account wrapper for the Sherwood Aero LP strategy . Carlos Beltran
Releases
newest firstNo releases.This repo has not published a release on GitHub.
