Write smart contract on Binance Smart Chain (BSC) to repay debt
Budget: $5,000 – $10,000 USD
- DO NOT BID ON THIS IF YOU ARE NOT AN INDIVIDUAL FREELANCER (ie: no programming programmers)
- DO NOT BID IF YOU HAVE NOT CONTRIBUTED TO OPEN SOURCE PROJECTS ON GITHUB (I will be checking)
Summary
This document describes a project where a smart contract must be written that is able to repay a loan of a wallet that has a debt in the Venus Protocol. The loan must be paid back by removing liquidity from a liquidity provider, in this document we will use Autofarm of PancakeswapV2.
Smart contract requirements
The smart contract should be configured in a way where a function can be called that queries the current supply vs debt ratio in Venus Protocol.
A second function should be created that can be used that will remove liquidity from a liquidity provider (AutoFarm), trade/convert the currencies into a token provided as an input argument that is also present in the debt for the wallet of Venus. Once called this function should reduce the ratio of the supply/debt.
The smart contract must also have security provisions in place where only specific hard coded addresses may call the contract and fail otherwise.
Additional comments
All code will be heavily code reviewed by myself. I have very high requirements of code quality.
- DO NOT BID IF YOU HAVE NOT CONTRIBUTED TO OPEN SOURCE PROJECTS ON GITHUB (I will be checking)
Summary
This document describes a project where a smart contract must be written that is able to repay a loan of a wallet that has a debt in the Venus Protocol. The loan must be paid back by removing liquidity from a liquidity provider, in this document we will use Autofarm of PancakeswapV2.
Smart contract requirements
The smart contract should be configured in a way where a function can be called that queries the current supply vs debt ratio in Venus Protocol.
A second function should be created that can be used that will remove liquidity from a liquidity provider (AutoFarm), trade/convert the currencies into a token provided as an input argument that is also present in the debt for the wallet of Venus. Once called this function should reduce the ratio of the supply/debt.
The smart contract must also have security provisions in place where only specific hard coded addresses may call the contract and fail otherwise.
Additional comments
All code will be heavily code reviewed by myself. I have very high requirements of code quality.