Intro

GoodDollar is being launched on XDC.

This is also the first time the protocol will have two active Reserves on different chains, creating the opportunity for arbitrage, and perhaps also risk if one reserve is compromised or diverges in parameters from the other reserve opening it for exploits.

We seek to perform a general audit for the protocol also focusing on changes made towards the XDC launch.

The protocol is composed of 3 repositories (along with the commit hash for the audit)

  1. Mento Reserve: https://github.com/GoodDollar/mento-core/commit/01bbb23a7a493584cf595e4d83d82de11854097b diff: https://github.com/GoodDollar/mento-core/compare/d69c66c0a91a9c6b66327b604a4e83b076fb4909...01bbb23a7a493584cf595e4d83d82de11854097b#diff-04f084ca661c1bcf4d255b01b976195afc9fb2fbc145f787026513b0c6e25d9d

  2. GoodBridge: LayerZero/Axelar based bridge https://github.com/GoodDollar/GoodBridge/commit/1be684d0220c3c06d8ec68d22eecaba108786a4d diff: https://github.com/GoodDollar/GoodBridge/compare/bf7f1a6c90f7fd848caa120182371afaaa88d1b5...1be684d0220c3c06d8ec68d22eecaba108786a4d

  3. GoodProtocol: https://github.com/GoodDollar/GoodProtocol/commit/c37c38ccfa0284405ce48733fec057689259a706

    diff: https://github.com/GoodDollar/GoodProtocol/compare/15a9361cb3be60bab4b4b9feae372649fe4c974b...c37c38ccfa0284405ce48733fec057689259a706

    identityv3 + celo distribution helper diff: https://github.com/GoodDollar/GoodProtocol/pull/285/files

Scope per project/repository

Mento Reserve:

Diffs

https://github.com/GoodDollar/mento-core/compare/d69c66c0a91a9c6b66327b604a4e83b076fb4909...01bbb23a7a493584cf595e4d83d82de11854097b#diff-04f084ca661c1bcf4d255b01b976195afc9fb2fbc145f787026513b0c6e25d9d

Major changes since last audit

Scope:

Has diff:

  1. +42 −9  contracts/libraries/TradingLimits.sol