No funded issue found.
Check out the Issue Explorer
Be the OSS Funding you wish to see in the world.
Looking to fund some work? You can submit a new Funded Issue here .
Time left
Opened
Issue Type
Workers Auto Approve
Project Type
Time Commitment
Experience Level
Permissions
Accepted
Reserved For
Account for gas price higher than minimum gas price
ethereum-alarm-clock
TypeScript, Shell, JavaScript
Currently https://github.com/ethereum-alarm-clock/timenode-core/blob/318a0e866154dd3b01035ab218d2f0cee65ff3c0/src/Actions/Actions.ts#L135 we are accounting for execution cost only when failing. After implementing https://github.com/ethereum-alarm-clock/ethereum-alarm-clock/pull/149, TimeNode can use higher gas price in order to execute the transaction.
This means the extra cost of (`realCost`-`reimbursedCost`) has to be accounted as a cost after successfull execution.
More background on rewards/costs accounting.
TimeNodes are the off-chain clients that are watching new scheduled transactions and trying to claim and execute them. Accounting is a simple mechanism that calculates total bounties and total costs collected by the TimeNode.
Currently, we account for:
1. Claiming
* cost - the actual cost of transaction on Ethereum = gasPrice * gasUsed in both success and fail case
2. Execution
* cost - when transaction failed to execute - either because of revert or abort reason
* bounty - when the transaction was successfully executed - this amount of reward is set by a person who schedules and stored in the `bounty` field of the tx. The exact amount to be paid is multiplied by `paymentModifier` (from 0 to 1). Additionally, there is a minimum `gasPrice` and `gas` set, and this value is reimbursed as well `gasPrice` * `gas` so in total the TimeNode accounts for `total = bounty * paymentModifier + gasPrice*gas - actualGasPriceUsedbyTimenode*gasUsed`
Current implementation is missing `actualGasPriceUsedbyTimenode*gasUsed` part
- [x] Implementation
- [x] Tests
Setup your profile
Tell us a little about you:
Skills
No results found for [[search]] .
Type to search skills..
Bio Required
[[totalcharacter]] / 240
Are you currently looking for work?
[[ option.string ]]
Next
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.
Back
Next
Save
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:
Email
Back
Save