Migrate Code Mitigation

LEONICORN SWAP
1 min readNov 25, 2021

Why we kept Migrator code in MasterHunter.sol

https://bscscan.com/address/0x72F8fE2489A4d480957d5dF9924166e7a8DDaBBf#code

Allows easy movement of Liquidity Pairs when there is a need of smart contract upgrade in future.

For the same reason, even our Audit company Hacken didn’t comment on this

Though we kept for good intention, some users thought this will be dangerous and we decided to mitigate this by following way

We have disabled ‘Migrator code’ in our DEX smart contracts by disallowing setting the migrator address by owner and also disabled code to ‘reclaim LEON Ownership’

No one can call setMigrator function and that means no more migrate functionality (No way to move Liquidity Pairs).

This solution is far far better than timelock which some DEX projects implemented and also no disturbance to present dex deployed smart contracts.

MasterHunter.sol ownership is transferred to smart contract address 0xc1B66475598dabb3dBC627D040Fbc9E1161b4D8b

and it has only 7 Write functions
https://bscscan.com/address/0xc1b66475598dabb3dbc627d040fbc9e1161b4d8b#writeContract

Website: https://www.leonicornswap.com/
DEX: https://dex.leonicornswap.com/
Twitter: https://twitter.com/swapleonicorn
Telegram: https://t.me/leonicornswap

--

--

LEONICORN SWAP

LEONICORN SWAP is a advance AMM with deflationary token model