Mining $YFL in Pool 3 (aLINK / YFL) Balancer

*CONTRACT NOT AUDITED, PROBABLY DANGEROUS, REVIEW ALL CODE BEFORE USE, USE AT YOUR OWN RISK

Overview
This contract is a fork of Andre Cronje’s YFI contract, that has been adapted to distribute $YFL to any user who deposits $LINK into the contract.

The contract will distribute 10,000 $YFL tokens per week on a linear basis until Wednesday, 26 August 2020 after which it will distribute $YFL at the rate of 5,000 tokens per week on a linear basis until the contract is depleted.

The amount of $YFL tokens any individual wallet receives is proportional to the amount of capital that wallet is providing.

Users can withdraw their $aLINK and $YFL from Pool 3 at any time.

Instructions:

Step 1: Obtain $LINK if you don’t already have some

You can also borrow $LINK on a non-custodial basis at aave.com

Step 2: Visit aave.com and click into the AAVE Market and select ChainLink as your asset

You will also need to connect your wallet!

Step 3: Deposit $LINK into the Aave Money market

By depositing LINK into Aave, you are supplying your LINK to be lent out across AAVE, and in return you will receive aLINK, an interest bearing token that represents your LINK being lent out. You will receive aLINK 1:1 for how much $LINK you deposit.

Screen Shot 2020-08-16 at 11.53.02 AM

Step 4: Select how much $LINK in your wallet you would like to supply, and sign 2 txs on metamask / your web3 wallet

The first tx will approve Aave to use your LINK, the second will deposit your link, and give you 1:1 aLINK in return.

When you have approved and deposited, Aave will let you know!

Congrats! You are now earning interest on your $LINK through Aave!

Step 5: Visit yflink.io and connect to Metamask

Enter the staking section of yflink.io and scroll to the aLINK/YFL Balancer Pool. Pool 3.

Step 6:

Click the “Balancer Pool” hyperlink to enter the official balancer pool for pool 3.

Step 7 (Balancer):

Connect your wallet, and click “Add Liquidity”

Step 8 (Balancer):

Unlock each asset by signing a transaction in metamask

Screen Shot 2020-08-16 at 12.51.34 PM

Step 9 (Balancer):

Click over to “Single Asset” if you want to only supply aLINK, if you select All Pool Assets you will need YFL as well.

Screen Shot 2020-08-06 at 10.48.22 AM

Note: if you select "All Pool Assets you will need to provide 2% YFL and 98% aLINK, please calculate this weight yourself manually as balancer can the weight wrong for newer assets

Step 10 (Balancer):

Enter the amount of aLINK you wish to supply to the Balancer Pool

Screen Shot 2020-08-06 at 10.53.28 AM

Clicking on “Max” will auto-select all of the $LINK in your wallet for you

Step 11 (Balancer):

Click “Add Liquidity”

Screen Shot 2020-08-06 at 10.55.57 AM

Note: If the "Add Liquidity button is greyed out, this means you still need to unlock assets or the transaction still needs to be confirmed on the blockchain

Step 12:

Now you should have BPT in your wallet. Return to the staking section of yflink.io and click “Mine $YFL” under the aLINK/YFL Balancer section for Pool 3

Note: Pool 3 will only be available for staking starting 19 Aug, 14:00 UTC. If you see “Opening Soon” vs “Mine YFL” on the staking button, you are a bit early!

Step 13:

Enter the amount of $BPT you wish to stake.

Clicking on “Balance” will auto-select all of the $BPT in your wallet for you

Step 14:

Click “Stake”. This will fire 2 transactions.

The first one approves the $YFL contract as a spender of your $BPT

The second removes the $BPT from your wallet and puts it into Pool 3

The $YFL rewards should start ticking up over time

That’s it!

Step 15. (Optional) Check your yield

Click on “aLINK/YFL Balancer Yield”

Screen Shot 2020-08-16 at 1.16.47 PM

Check your yield

That’s it!

1 Like