MilkshakeSwap
  • MILKShakeSwap
  • Roadmap
  • FAQ
  • MilkShake Menu
    • Contracts
    • Milking & Flavour Pool
    • Lotto
  • Guides
    • How to use MetaMask on MIlkShakeSwap
  • Tokenomics
    • Tokenomics
  • Community-Social Network
    • Twitter
    • MILK Incentives & Extra Rewards
    • Telegram
    • Blog (Medium)
  • Code
    • Github
Powered by GitBook
On this page

Was this helpful?

  1. MilkShake Menu

Contracts

PreviousMilkShake MenuNextMilking & Flavour Pool

Last updated 4 years ago

Was this helpful?

Our contracts are publicly accessible in the following repo

  • MILK:

  • MasterChef:

  • Lottery :

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

https://github.com/MilkShake-Swap
0xc9bCF3f71E37579A4A42591B09c9dd93Dfe27965
0x9c19eB54c759c9369C788D6554f08Bb6cAdab10d
0xc4E8Ce0AE31623B6D43Fd9946AE9B75354ad9ba2