A decentralized farming protocol for earning PIGGY tokens through LP staking.
There are two main smart contracts:
- Piggy.sol - The PIGGY ERC20 token contract with Merkle-based token distribution
- SlopBucket.sol - MasterChef-style contract for staking LP tokens to earn PIGGY rewards
- Total Supply: 69,000,000,000 PIGGY
- Symbol: PIGGY
- Decimals: 18
Key features:
- Merkle-based token distribution system
- One-time claim per eligible address
- Merkle root can be locked to prevent further updates
- Unclaimed tokens can be burned after distribution period
Staking contract that allows users to:
- Deposit LP tokens to earn PIGGY rewards
- Withdraw LP tokens and claim rewards
- Emergency withdraw without rewards in case of issues
Features:
- Fixed PIGGY rewards per block
- Single staking pool implementation
- Reward calculation based on user's share of total LP tokens staked
- Deploy the Piggy Token Contract.
- Deploy the SlopBucket Contract:
- Pass the Piggy token address, Uniswap V2 LP token address, reward rate (piggyPerBlock), and start block.
- Piggy owner calls sendToSlopBucket, sending 6.9B tokens:
piggy.sendToSlopBucket(slopBucketAddress);
- Users stake LP Tokens and get PIGGY rewards.