Skip to content
Request an audit

Rounding always favours the protocol, and what mint does against a one-wei reserve

We continued the Mento V3 contest on Cantina.

Lesson Summary:

  • Roundings should happen in favour of the protocol, always;
  • Can I swap the whole reserve0 or reserve1?
  • Let's say totalSupply is 1000, 2000 reserve0 and 1 wei reserve1. If I try to deposit 1000 of each, check mint what will happen;
  • Will this take my 1000 token1, given it has no effect on how much liquidity is minted?
Watch the session on YouTube ↗
Message on Telegram All 62 posts