-
Notifications
You must be signed in to change notification settings - Fork 2
As a user I want to collect fee earnings in THX #18
Copy link
Copy link
Open
Description
TODO
- Set the factory address with contractor
- Get the quickswap factory
- Create method deposit()
- In method call factory.getPair(maticAddr, ethAddr) for MATIC/ETH
- See if the pair exists
- If not create the pair factory.createPair(maticAddr, ethAddr)
Flow
- Deposit ERC20 in pool
- Transfer fee to erc20-swapper contract (collector)
- Call swapper.collect()
- Call swapper.swap()
- Get pair for ERC20/ETH from quickswap factory
- Swap ERC20 for ETH
- Swap ETH for THX
- Transfer THX to balancer pool
- Create pair for ERC20/THX from quickswap factory if ERC20/ETH pair is not found
- Provide liquidity (THX) for new pair
- Swap ERC20 for THX
- Transfer THX to balancer pool
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels