Contracts
Our contracts are publicly accessible in the following repo https://github.com/MilkShake-Swap
MasterChef: 0x9c19eB54c759c9369C788D6554f08Bb6cAdab10d
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
Was this helpful?