Workers Auto Approve
Remove need for recursive queries from Oraclize.it
MarketContractOraclize.sol currently sets up oraclize.it queries recursively to check for a price that will push the contract into settlement either due to a price band being breached or the timestamp being past the expiration date of the contract.
Although this process is outlined in the oraclize.it documentation - they are warning against this mechanism. The cost of the query from oraclize.it is pegged to USD and not to ETH. So a long running contract could experience substantial variation in the needed pre-funding that will allow for all of the needed queries to be completed. The alternative here is to schedule a single query for the contract on the intended expiration timestamp. This has the downside of not catching possible settlements based upon a price band being breached, but this can be enforced by end users, or an off chain application that can call queries on demand thus pushing the contract into settlement.
Recursive queries are not really functional with oraclize.it and the variable pricing mechanism
## Solution and Needed Changes For Bounty To Be Released
1. Remove all need for recursive queries
2. Change the constructor of `MarketContracOraclize.sol` to schedule a query only at expiration. We can remove the `ORACLE_QUERY_REPEAT` variable entirely.
3. In the constructor, `require` that sufficient funds are available to pay for the query
4. Remove `validScheduledQueryIDs` since we only will have one scheduled query
5. Modify `_callback` to handle the new functionality
6. Remove uneeded events `OracleQuerySuccess` and `OracleQueryFailed`
7. Create / modify all needed tests to maintain sufficient coverage
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: