code-423n4 / 2022-04-backd-findings

6 stars 4 forks source link

QA Report #173

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

You may also consider a more universal approach, e.g. token to dex mapping and general adapter for each dex to support not just these 2 dexes, but have more flexibility.

Solution (don't forget re-entrancy protection): https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol#L53-L59