How to deploy existing DeFi contracts to localhost?

Hi @Ankarrr,

Welcome to the community forum :wave:

You could test against a fork of mainnet using ganache-cli --fork so that you can use the actual DeFi contracts.

OpenZeppelin Test Environment supports testing using ganache fork. See the announcement for details:

1 Like