> For the complete documentation index, see [llms.txt](https://gameswapfinance.gitbook.io/poly-unicorn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gameswapfinance.gitbook.io/poly-unicorn/security/no-migrator-code.md).

# No Migrator Code

It is not a novelty that many farmings, especially the first ones, made rugpull thanks to the migrator code present in the Pancake MasterChef.

```javascript
function migrate(uint256 _pid) public {
        require(address(migrator) != address(0), "migrate: no migrator");
        PoolInfo storage pool = poolInfo[_pid];
        IBEP20 lpToken = pool.lpToken;
        uint256 bal = lpToken.balanceOf(address(this));
        lpToken.safeApprove(address(migrator), bal);
        IBEP20 newLpToken = migrator.migrate(lpToken);
        require(bal == newLpToken.balanceOf(address(this)), "migrate: bad");
        pool.lpToken = newLpToken;
}
```

Of course our code does not have this function and you can check it via the link on the contracts page.
