1/n
A small thread on what I did to pay keepers working on the @HegicOptions keep3r job providing liquidity.
For context, please read https://macarse.medium.com/the-keep3r-network-experiment-bb1c5182bda3
A small thread on what I did to pay keepers working on the @HegicOptions keep3r job providing liquidity.
For context, please read https://macarse.medium.com/the-keep3r-network-experiment-bb1c5182bda3

2/n
So far, all keep3r jobs have been paying keepers with the KP3R token, but as a job creator, you can pay keepers with ETH, a random erc20 token, or you can provide liquidity.
So far, all keep3r jobs have been paying keepers with the KP3R token, but as a job creator, you can pay keepers with ETH, a random erc20 token, or you can provide liquidity.
3/n
To provide liquidity, KP3R gov needs to approve the LP pair.
I asked @0xMaki to create a KP3R/Hegic pair in Sushi and asked @AndreCronjeTech to approve KP3R/Hegic in Keep3r.
To provide liquidity, KP3R gov needs to approve the LP pair.
I asked @0xMaki to create a KP3R/Hegic pair in Sushi and asked @AndreCronjeTech to approve KP3R/Hegic in Keep3r.
4/n
Once the pair was approved, KP3R/Hegic could be added as liquidity to a job. I gave my LP tokens to keep3r, assigning them to the Hegic job. After waiting for the bond time, I could apply the credit to the job.
Once the pair was approved, KP3R/Hegic could be added as liquidity to a job. I gave my LP tokens to keep3r, assigning them to the Hegic job. After waiting for the bond time, I could apply the credit to the job.
5/n
Keep3r will look inside the LP tokens provided, check how many KP3R are, mint that exact amount and add those new KP3R to the job.
This process increased the HegicKeep3r job credits by 2 and it also increased KP3R supply by the same amount!
Keep3r will look inside the LP tokens provided, check how many KP3R are, mint that exact amount and add those new KP3R to the job.
This process increased the HegicKeep3r job credits by 2 and it also increased KP3R supply by the same amount!
6/n
For Keep3rs: They can now sell their KP3R earned for Hegic.
For job creators: They can fund their job providing liquidity.
This is very exciting!
For Keep3rs: They can now sell their KP3R earned for Hegic.
For job creators: They can fund their job providing liquidity.
This is very exciting!
7/n
If you want to try it out, here's the code I run in a mainnet-fork with @BrownieEth before sending the txs to mainnet. https://gist.github.com/Macarse/3f0fbca640986cf87cfa752305c5f58c
If you want to try it out, here's the code I run in a mainnet-fork with @BrownieEth before sending the txs to mainnet. https://gist.github.com/Macarse/3f0fbca640986cf87cfa752305c5f58c