Workers Auto Approve
add method for approveCollateralDepositAsync()
## Before you `start work`
Please read our contribution [guidelines](https://docs.marketprotocol.io/#contributing) and if there is a bounty involved please also see [here](https://docs.marketprotocol.io/#gitcoin-and-bounties)
If you have ongoing work from other bounties with us where funding has not been released, please do not pick up a new issue. We would like to involve as many contributors as possible and parallelize the work flow as much as possible.
Please make sure to comment in the issue here immediately after starting work so we know your plans for implementation and a timeline.
Please also note that in order for work to be accepted, all code must be accompanied by test cases as well.
### User Story
As a user of market.js, I would really like to never worry about which contract address to use for which function call. It get's confusing when I need to call an erc20 approve function on the collateral pool address, but market.js doesn't use those addresses any longer in its api.
An example can be seen here - https://github.com/MARKETProtocol/dApp/blob/bfe8b9f80915cd2ad325b729a126364e6aaff462/src/util/marketjs/marketMiddleware.js#L58
### Why Is this Needed?
*Summary*: simplify our api further and avoid confusion
*Summary*: add new function to simplify approve methods
### Definition of Done
- [ ] add `approveCollateralDepositAsync` method that accepts a market contract address (like all of our other functions), but creates the approval for the address of the MarketCollateralPool that is linked. See `depositCollateralAsync` as an example, it uses the MarketContractAddress to find the linked MArketCollateralPool
- [ ] add needed tests
Setup your profile
Tell us a little about you:
No results found for
Type to search skills..
Required [[totalcharacter]] / 240
Are you currently looking for work?
[[ option.string ]]
Setup your profile
Our tools are based on the principles of earn (💰), learn (📖), and meet (💬).
Select the ones you are interested in. You can change it later in your settings.
I'm also an organization manager looking for a great community.
Enable your organization profile
Gitcoin products can help grow community around your brand. Create your tribe, events, and incentivize your community with bounties. Announce new and upcoming events using townsquare. Find top-quality hackers and fund them to work with you on a grant.
These are the organizations you own. If you don't see your organization here please be sure that information is public on your GitHub profile. Gitcoin will sync this information for you.
Select the products you are interested in:
Out of the box you will receive Tribes Lite for your organization. Please provide us with a contact email: