Malt Finance contest - pauliax's results

Yield farmable, incentive-centric algorithmic stable coin.

General Information

Platform: Code4rena

Start Date: 25/11/2021

Pot Size: $80,000 USDC

Total HM: 35

Participants: 32

Period: 7 days

Judge: GalloDaSballo

Total Solo HM: 27

Id: 59

League: ETH

Malt Finance

Findings Distribution

Researcher Performance

Rank: 10/32

Findings: 3

Award: $2,370.41

🌟 Selected for report: 10

🚀 Solo Findings: 0

Findings Information

Labels

bug
duplicate
2 (Med Risk)

Awards

20.04 USDC - $20.04

External Links

Handle

pauliax

Vulnerability details

Impact

functions buyMalt and sellMalt, and removeLiquidity have no slippage protection and addLiquidity hardcodes it to 5%:

  0, // amountOutMin

Mempool snipers can profit from that by monitoring the chain and sandwiching these functions. Now it is left for the caller to check if he is satisfied with the received amount. For example, function _unbondAndBreak is happy with any amount:

  (uint256 amountMalt, uint256 amountReward) = dexHandler.removeLiquidity();

  malt.safeTransfer(msg.sender, amountMalt);
  rewardToken.safeTransfer(msg.sender, amountReward);

See a similar finding in the previous contest: https://github.com/code-423n4/2021-09-bvecvx-findings/issues/34

While it may be impossible in certain cases to predict or specify it, you should consider reviewing all the cases and hardening the slippage protection where possible.

#0 - 0xScotch

2021-12-10T00:21:22Z

#219

#1 - GalloDaSballo

2022-01-24T00:30:04Z

Duplicate of #219

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter