# Piggy Bank

# Introduction

Piggy Bank is the variable time-locking staking protocol of Animal Farm.

By staking AFP/BUSD LP, you can buy piglets, which produce truffles, which allow you to earn compound interest of 3.33% daily.

defi.animalfarm.app/piggy-bank
https://defianimalfarm.live/piggy-bank

Only Piglets have a value in-game; BUSD hasn't. Piglets have a fixed exchange rate for their in-game counterpart, the Truffles. These have a value fixed at 1 / 2592000 of a Piglet.

Produced truffles by each Piglet can be sold for AFP/BUSD LP.

Interest for users is based on their individual compound rate and the lock-up period they choose.

PIGLET TRUFFLES %
IS COMPOSED BY: 2.592.000 100%
HAVE A DAILY PRODUCTION: 86.400 3.33%

Consequently, every 30 days, a Piglet produces enough truffles that compounded creates a new Piglet.

# Time lock bonus

You can time-lock your stake from a minimum of 1 week to a maximum of 156.

The longer a user locks their ability to withdraw earned PIGS/BUSD LP interest, the higher bonus that user is allocated, which they can then compound into their principal over the life of their stake.

TIME LOCK TRUFFLES BONUS %
NO TIME LOCK 0%
1 WEEK 5%
10 WEEK 33%
40 WEEK 1601%
156 WEEK 149299%%

The bonus percentage is calculated daily on the truffles produced by your stake and added to them.

You need to compound day-to-day to get the full time-lock bonus.

The 30% of the multiplier time-lock bonus being added to the principal in the first 75% of the stake's length, the remaining is added exponentially to the principal in the last 25% of the time lock up.

Opposed to a non-timelocked stake, it is not possible to deposit more AFP/BUSD LP in a second stage.


# Max Payout

To ensure the sustainability of the Piggy Bank protocol a MAX PAYOUT of each stake is calculated as follows:

Your Piglets * 2592000 * 3 = max Truffles claimable (AFP/BUSD LP) or simply max payout.

No more action will be possible once the max payout has been reached.


PIGGY BANK TAX
Deposit AFP/BUSD LP 5%
Withdrawal AFP/BUSD LP N.A*
Claim rewards AFP/BUSD LP 5%
Compound rewards AFP/BUSD LP 0%

* Once AFP/BUSD LP is deposited, they are permanently added to the contract pool and cannot be withdrawn.

Read the documentation to learn more:

PIGGY BANK
../../../af/piggybank/


# Know your UI

Before proceeding, let's learn how to get confidence with the user interface.

defi.animalfarm.app/piggy-bank
https://defianimalfarm.live/piggy-bank

  • Total PIGS in Vault= AFP tokens that currently are locked in the Piggy Bank pool.
  • Piggy Bank Total Value Locked= the $ value of the tokens currently locked in the Piggy Bank pool.
  • Total PIGS Supply= tokens that currently exist, even if locked or circulating.
  • PIGS Market Cap= Market capitalization equals the size of a cryptocurrency in the market (current price x total supply)
  • PIGS Circulating Supply= AFP tokens that are publicly available and circulating in the market.
  • PIGS Burned= the total amount of PIGS burned.

# How to add Liquidity to AFP/BUSD LP

You must commit the same value of both tokens to provide liquidity, so we need, in addition to the same value in BUSD, to get the necessary PIGS.

  1. Go to: defi.animalfarm.app/swap

  2. Connect your wallet.

  1. Enter the BUSD amount, set 1% slippage, hit SWAP and then CONFIRM.

  1. Pay gas fees and approve the transaction in your crypto-wallet.

Still don't see your AFP in the token list?

  1. Go to:
  1. Connect your wallet via AnimalFarm.

  1. Click on CLAIM.

  1. Click again on CLAIM, and approve the transaction in your crypto-wallet.
  1. Once approved, a small notification window will appear.

  1. Go to defi.animalfarm.app/dog-pound

  2. Connect your wallet via AnimalFarm.

  1. At the top of the page, find the Auto-Compounding Pool section and click on "Claim PIGS" and approve the transaction in your crypto-wallet.

  1. Once approved, a small notification window will appear.

It is possible to create the LP tokens through a contract made available on the Animal Farm website.

  1. Go to ADD LIQUIDITY PIGS
  2. Connect your wallet.

  1. If you are creating the AFP/BUSD LP pair for the first time, you will need to approve both tokens via your crypto wallet. Click on "APPROVE PIGS" and "APPROVE BUSD" to confirm the transaction.

  1. Set 1% slippage, click on Add Liquidity and confirm the transaction in your crypto-wallet.

  1. Once approved, a small notification window will appear.

Still don't see your AFP/BUSD LP in your token list?


# How to stake

In this section, we learn how to make a stake in the Piggy Bank.

It is possible to create a stake by purchasing PIGLETS, the game currency, with the AFP/BUSD LP token.

You can have multiple stakes using the same wallet address, with various time locked stakes.

  1. Go to: defi.animalfarm.app/piggy-bank

  2. Connect your wallet via AnimalFarm.

Select one of the two options below:

To perform the PIGGY BANK stake, we will use the UI called "Buy Piglets with LP token".

  1. Enter the AFP/BUSD LP amount you want to stake.

  1. Slide the cursor to the desired lock duration/bonus.

  2. Hit "Buy Piglets" and then "Acknowledge" to confirm it, pay the gas fees, and authorize the transaction in your crypto-wallet.

  1. Once approved, a small notification window will appear.

You can sell your truffles AFTER the time lock expires. While your stake is timelocked you can only compound.

To perform the PIGGY BANK stake, we will use the UI called "Buy Piglets with LP token".

  1. Enter the AFP/BUSD LP amount you want to stake.

  1. Leave the lock duration at 0 weeks.

  2. Hit "Buy Piglets" and then "Acknowledge" to confirm it,

  1. Once approved, a small notification window will appear.

# How to deposit more

If you want to add more AFP/BUSD LP to your stakes deposit, follow this instructions carefully:

  1. Go to: defi.animalfarm.app/piggy-bank

  2. Connect your wallet via AnimalFarm.

To perform the deposit, we will use the UI called "My PiggyBanks".

  1. Select whatever non-time locked stake, hit the "Action" button, and then press "Deposit."

  1. Enter the AFP/BUSD LP amount you want to stake and hit "Deposit", pay the gas fees, and authorize the transaction in your crypto-wallet.

  1. Once approved, a small notification window will appear.


# How to gift a stake

In this section, we learn how to gift a stake in the Piggy Bank.

It is possible to gift a stake by purchasing PIGLETS, the game currency, with the AFP/BUSD LP token.

  1. Go to: defi.animalfarm.app/piggy-bank

  2. Connect your wallet via AnimalFarm.

Select one of the two options below:

To perform the PIGGY BANK gift, we will use the UI called "Gift Piglets with LP token".

  1. Enter the AFP/BUSD LP amount you want to gift.

  1. Slide the cursor to the desired lock duration/bonus.

  2. Enter a recipient address.

  3. Hit "Gift Piglets" and then "Acknowledge" to confirm it, pay the gas fees, and authorize the transaction in your crypto-wallet.

  1. Once approved, a small notification window will appear.

To perform the PIGGY BANK gift, we will use the UI called "Gift Piglets with LP token".

  1. Enter the AFP/BUSD LP amount you want to gift.

  1. Leave the lock duration at 0 weeks.

  2. Enter a recipient address.

  3. Hit "Gift Piglets" and then "Acknowledge" to confirm it, pay the gas fees, and authorize the transaction in your crypto-wallet.

  1. Once approved, a small notification window will appear.


# How to compound

Compound allows you to grow your stakes and produce exponentially more truffles.

  1. Go to: defi.animalfarm.app/piggy-bank

  2. Connect your wallet via AnimalFarm.

To perform the compound, we will use the UI called "My PiggyBanks".

  1. Select a stake, hit the "Action" button, and then press "Compound."

  1. Pay the gas fees, and authorize the transaction in your crypto-wallet.
  1. Once approved, a small notification window will appear.

All Stakes can be compounded at once with a multi-transaction, we will use the button called Compound All Stakes.

  1. Hit the "Compound All Stakes" button.

  1. Pay the gas fees, and authorize every transaction in your crypto-wallet, one for each stake.
  1. Once approved, a small notification window will appear.


# How to claim Rewards

In this section, we learn how to claim the Piggy Bank rewards.

It is possible to claim truffles, the game currency, automatically converted into AFP/BUSD LP tokens.

If the stake is time-locked, you can sell truffles AFTER the time lock expires.

  1. Go to: defi.animalfarm.app/piggy-bank

  2. Connect your wallet via AnimalFarm.

To perform the sale, we will use the UI called "My PiggyBanks".

  1. Select a stake, hit the "Action" button, and then press "Sell"

  1. Pay the gas fees, and authorize the transaction in your crypto-wallet.
  1. Once approved, a small notification window will appear.

Still don't see your AFP/BUSD LP in the token list?


# How to unpair AFP/BUSD LP

It is possible to unpair all LPs through PancakeSwap's "Remove Liquidity" tool.

  1. Navigate to pancakeswap.finance/liquidity and connect your wallet.

  2. Click on the pair you want to remove liquidity from under "Your Liquidity".

  • If the pair you own is not displayed click "Find other LP tokens"

  • Enter BUSD in the first box.

  • Click on SELECT A TOKEN

  • Enter the AFP address and confirm.

Token & Contracts
../../../../contracts/

AFP PIGS
0x9a3321E1aCD3B9F6debEE5e042dD2411A1742002

  1. A window will open informing you of the estimated AFP/BUSD LP value, next press REMOVE.

  1. Choose the percentage you want to remove, set the correct slippage and click REMOVE, validating the transaction.

  1. Now tokens are separately present in your wallet.

Still don't see your AFP in the token list?


# How to use referral system

The Piggy Bank offers a static 2% commission.

Once your wallet is connected to the Piggy Bank UI, you will notice that your referral address can be copied by hitting the apposite button.

When a user create a new stake, after clicking your personal referral link, the contract will send to your Piggy Bank truffles equal to 2% of their purchase.

The reached referral list will be available through the Piggy Bank UI.


# Charts

Want more information? See the data/charts section!

🐷 Advanced Charts about Piggy Bank Statistics & Analytics
/tools/animalfarm/piggy-bank/