Workers Auto Approve
Create RemaingFillableCalculator class
## 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 I would like to be able to easily determine if an order is valid and the qty remaining available to be filled.
### Why Is this Needed?
*Summary*: In order for a better order book maintenance and pruning
[comment]: # (Provide a summary of the solution and a task list on what needs to be fixed.)
*Summary*: Implement a RemainingFillableCalculator using [this](https://github.com/0xProject/0x-monorepo/blob/master/packages/0x.js/src/order_watcher/remaining_fillable_calculator.ts) as an example.
Ourimplementation differs from the example, so here are the factors that affect a MARKET Protocol order and its "fillability" -
- Remaining un-allocated balance in the correct `CollateralPool` contract. See `getUserAccountBalanceAsync` in the codebase.
- Ability for fees to be paid by the maker, if applicable. (same as in the above example)
- Previously filled qty and previously cancelled qty (handled elsewhere, same as in example)
### Definition of Done
- [ ] Create new `RemainingFillableCalculator` class
- [ ] Create needed test to support all code generated (this may take more time than the actual implementation)
- [ ] Ensure code is well documented
#### This task will probably need for whomever picks it up to do a little research into our whitepaper and our [solidity repo](https://github.com/MARKETProtocol/MARKETProtocol) as well. Please only pick this issue up if your willing to put in the work and get the tests running. We are adding some extra ETH here for the bounty to facilitate the needed research and time spent. Some experience with TypeScript is helpful, and even more helpful would be experience with 0x or financial markets and orders.
#### We will accept bounty hunters who explain why the believe they are able to successfully complete this task and a timeline to do so.
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: