The Index Coop wishes to deploy a smart contract that enables a user to purchase or sell an index product in a single transaction using decentralized exchange liquidity (e.g. Uniswap/Sushiswap). It is advised that you take inspiration from DeFi Pulse’s arb bot, which has much of the logic for issuance and on-chain DEX trades.
Specification:
- Should allow using the best price via sushiswap or uniswap for each purchase
- Should allow payment or receiving using an erc20 or Ether
- Should allow issuance or redemption using the BasicIssuanceModule of any Index or Set token
Successfully completing this bounty requires:
- Writing smart contract code in solidity, writing unit tests, and writing deployment scripts
- Code to be reviewed and audited by the Set engineering team
- Code is ultimately deployed into production
Bounty: 400 INDEX
Implementor: Currently being implemented by @ncitron and @alphaguy