pangolindex / exchange-contracts

GNU General Public License v3.0
94 stars 65 forks source link

Update PangolinBridgeMigrationRouter.sol #16

Closed NengakDakup closed 2 years ago

NengakDakup commented 2 years ago

Perform zero Address check for pairB

bmino commented 2 years ago

Good eye! This contract was used to facilitate the migration of AEB assets to the newer AB assets awhile ago. This was an oversight but I'd prefer not to merge this change as it would modify the recorded bytecode of an already deployed contract for reference. Line 147 itself isn't a danger as the same check is accomplished in require beginning on line 149