GreenTeaSwapV2
  • Gentleman Greentea (V2)
  • πŸ“…. Launch
  • πŸ›£. Roadmap
  • 🍡. Greentea.Farm & Pool
  • 🍡. TOKENOMIC & Contracts
  • 🍡. Greentea DAO [Soon]
  • GreenteaswapV2 Features
    • ✨Automated Burning πŸ”₯
    • ✨ Automated Liquidity πŸ”₯
    • ✨Anti-Whale
    • ✨Referral Program
    • ✨Harvest Lockup
  • SECURITY & AUDIT
    • πŸ›‘οΈ Audits
    • πŸ›‘οΈ No Migrator Code
    • πŸ›‘οΈ TransferOwnership
  • TECHNICAL
    • 🧰. Find a Pool ID
    • 🧰. Matic Network RPC
    • 🧰. Use another RPC
    • 🧰. Emergency Withdraw
    • 🧰. Bridge Funds
  • LINKS
    • πŸ”—. Web Greenteaswap
    • πŸ”—.Greenteaswap Telegram
    • πŸ”—.Greenteaswap Twitter
    • πŸ”—. Greenteaswap Github
    • πŸ”—. Greenteaswap Medium
Powered by GitBook
On this page

Was this helpful?

  1. SECURITY & AUDIT

πŸ›‘οΈ No Migrator Code

PreviousπŸ›‘οΈ AuditsNextπŸ›‘οΈ TransferOwnership

Last updated 3 years ago

Was this helpful?

Removed migratator code

Removed from PancakeSwap's ​

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

​

MasterChef.sol