Skip to content

Commit

Permalink
Merge pull request #4697 from gitcoinco/kevin/fixesgrantnewgasestimate
Browse files Browse the repository at this point in the history
fixes the grants/new gas estimate
  • Loading branch information
thelostone-mc authored Jun 27, 2019
2 parents 23f4641 + 91d24c0 commit 1e172a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/assets/v2/js/pages/shared_bounty_mutation_estimate_gas.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ var gas_amount = function(page_url) {

if (page_url.indexOf('issue/fulfill') != -1) {
gasLimitEstimate = 207103;
} else if (page_url.indexOf('grants/new') != -1) { // new grant contribution
gasLimitEstimate = 3000000;
} else if (page_url.indexOf('/new') != -1) { // new fulfill funding page
gasLimitEstimate = 318730;
} else if (page_url.indexOf('issue/increase') != -1) { // new fulfill funding page
Expand All @@ -22,11 +24,9 @@ var gas_amount = function(page_url) {
gasLimitEstimate = 21000;
} else if (page_url.indexOf('tip/receive') != -1) { // tip
gasLimitEstimate = 21000;
} else if (page_url.indexOf('subscription') != -1) { // cancel grant contribution
} else if (page_url.indexOf('subscription') != -1) { // subscribe grant contribution
gasLimitEstimate = 318730;
} else if (page_url.indexOf('grants/new') != -1) { // cancel grant contribution
gasLimitEstimate = 3000000;
} else if (page_url.indexOf('grants/fund') != -1) { // cancel grant contribution
} else if (page_url.indexOf('grants/fund') != -1) { // fund grant contribution
gasLimitEstimate = 69169;
} else if (page_url.indexOf('grants/cancel') != -1) { // cancel grant contribution
gasLimitEstimate = 45805;
Expand Down

0 comments on commit 1e172a6

Please sign in to comment.