Harvestors allow users to take advantage of tax-loss harvesting by making a market
for a specified token and buying it at a constant price of 0.0069
ether.
A user can create a market for any token they wish to harvest by using the Harvest0rFactory
The HARVEST0R projects consists of Harvest0r.sol
, Seeds.sol
and the Harvest0rFactory.sol
contracts.
To access Harvestors you need a Seeds Access Voucher
NFT with enough charge.
The flow to use a Harvest0r
is:
- Obtain a
Seeds Access Voucher
NFT - Navigate to the
Harvest0rFactory
and either deploy aHarvest0r
for the token you want to harvest, or find theHarvest0r
address if already deployed. - Access the
sellToken
functionality of theHarvest0r
-token pair. You will receive a constant0.0069 ether
per sale. This consumes one charge of theSEEDS
NFT. - Should the charges become depleted you can replenish the NFT's charges by calling
recharge
on theSEEDS
NFT contract, this costs0.069 ether
for 9 charges.
-
Tax-loss harvesting is legal in certain jurisdictions, but it is ALWAYS the user's responsibility to be aware of the tax and legal consequences of any action they take, especially on the blockchain where transactions are not private and do not disappear. Do not interact with the contracts if you intend to use it in an illegal manner. Always assume all addresses used at least once as doxxed. The creator cannot accept responsibility for your actions.
-
The tokens sold to the Harvestors do not return to the users. The owners can sell these tokens at a later stage should it become profitable. This is part of the business model.
HarvestorFactory.sol
allows users to deploy Harvestors for specific tokens using newHarvestor
.
A user can use findHarvestor(token)
to find the appropriate Harvestor-Token pair.
The Seeds Access Voucher NFTs (SEEDS) are required to allow access to Harvestor Contracts.
Only 1000 of these vouchers can be minted, at a price of 0.069 eth. Max 5 per wallet.
As evidenced in the code, in effect only 10% of the minting price goes to the creators.
The Seeds NFTs hold 9 charges, which grants access to the sellToken
functionality of the Harvest0r 9 times.
Once depleted the NFT can be recharged through the recharge
function of the Seeds.sol
contract.
This project was created as part of the BuidlGuidl and is built on Scaffold-eth
everything you need to build on Ethereum! 🚀
🧪 Quickly experiment with Solidity using a frontend that adapts to your smart contract:
Prerequisites: Node (v18 LTS) plus Yarn (v1.x) and Git
🚨 If you are using a version < v18 you will need to remove openssl-legacy-provider
from the start
script in package.json
clone/fork 🏗 scaffold-eth:
git clone https://github.com/scaffold-eth/scaffold-eth.git
install and start your 👷 Hardhat chain:
cd scaffold-eth
yarn install
yarn chain
in a second terminal window, start your 📱 frontend:
cd scaffold-eth
yarn start
in a third terminal window, 🛰 deploy your contract:
cd scaffold-eth
yarn deploy
Register as a builder here and start on some of the challenges and build a portfolio.
Join the telegram support chat 💬 to ask questions and find others building with 🏗 scaffold-eth!
🙏 Please check out our Gitcoin grant too!