ProofSuite / OrFeed

DeFi & Distributed Data Service Aggregator
https://www.orfeed.org
Apache License 2.0
241 stars 152 forks source link

OrFeed Gas Saving Contract Completion #73

Closed mikedeshazer closed 4 years ago

mikedeshazer commented 4 years ago

NOTE: This issue will likely be resolved after 48 hours if issue is not resolved by third-party. This contract (https://github.com/ProofSuite/OrFeed/blob/master/contracts/examples/extra/gasRetail.sol) was drafted because many users of OrFeed Angle are requesting cheaper transaction fees on the ETH blockchain, and this is one way of achieving cheaper gas prices on transactions while still getting transactions confirmed quickly.

This contract relies heavily on the GasToken 2 contract: https://etherscan.io/token/0x0000000000b3F879cb30FE243b4Dfee438691c04 The contract's desired function is as follows:

-Purchase Gas that was pre-bought at extremely low prices (but premium) for a cheaper amount (these gas tokens are preloaded and continuously donated by owner of contract into the contract when gas prices are very low)

-Sell Gas at the sell price set by owner

-Owner sets gas buy and sell prices that the contract will honor (throwing transactions if it does not have quality to fill the order)

-Serves as a proxy contract (like this: https://medium.com/@blockchain101/the-basics-of-upgradable-proxy-contracts-in-ethereum-479b5d3363d6) allowing users to use it to call other contracts, burn their gas token, and save on transactions

-Keeps the balance and updates it based on the above activity for each user Allows owner to retrieve ETH and gas token surplus that's stored in the contract

The current draft code with most of the functions started is located here: https://github.com/ProofSuite/OrFeed/blob/master/contracts/examples/extra/gasRetail.sol

The goal is to complete this contract and test within 48 hours. Otherwise it will be completed outside of this bounty as the UI is set to go live by Wednesday.

Have questions? Here's the discord (https://discord.gg/byCPVsY). In the issues channel, feel free to drop a note.

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 0.4 ETH (95.29 USD @ $238.24/ETH) attached to it as part of the ProofSuite fund.

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 1 day, 10 hours from now. Please review their action plans below:

1) mul1sh has started work.

I've done a similar implementation before with the GasToken, so will try to get this done in the next few hours. Thanks

Learn more on the Gitcoin Issue Details page.

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 0.4 ETH (99.52 USD @ $248.79/ETH) has been submitted by:

  1. @mul1sh

@mikedeshazer please take a look at the submitted work:


gitcoinbot commented 4 years ago

⚡️ A tip worth 0.08000 ETH (18.98 USD @ $237.21/ETH) has been granted to @mul1sh for this issue from @mikedeshazer. ⚡️

Nice work @mul1sh! Your tip has automatically been deposited in the ETH address we have on file.

gitcoinbot commented 4 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 0.4 ETH (94.88 USD @ $237.21/ETH) attached to this issue has been approved & issued to @mul1sh.

Additional Tips for this Bounty: