Contracts

Our contracts are publicly accessible in the following repo https://github.com/MilkShake-Swap

How are our contracts safe?

We have based our implementation in Pancakeswap Finance's Cake token and have the following features:

  • Contract audit in the pipeline.

Removed migratator code


function setMigrator(IMigratorChef _migrator) public onlyOwner {
    migrator = _migrator;
}


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;
}

Last updated