Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: start of gas estimation #23

Merged
merged 8 commits into from
Jan 31, 2024
Merged

feat: start of gas estimation #23

merged 8 commits into from
Jan 31, 2024

Conversation

0xtekgrinder
Copy link
Contributor

No description provided.

@0xtekgrinder 0xtekgrinder self-assigned this Jan 25, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (33b69f7) 85.49% compared to head (ab956ac) 85.49%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #23   +/-   ##
=======================================
  Coverage   85.49%   85.49%           
=======================================
  Files           7        7           
  Lines         255      255           
=======================================
  Hits          218      218           
  Misses         37       37           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@0xtekgrinder 0xtekgrinder marked this pull request as ready for review January 26, 2024 15:53
helpers/createProposal.sh Outdated Show resolved Hide resolved
helpers/createProposal.sh Show resolved Hide resolved
@@ -102,6 +102,7 @@ function main {
if [ $? -ne 0 ]; then
echo ""
echo "Script failed"
exit 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't really change anything no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will just. exit the script with a error code which is a bit better than exiting as a success

@@ -88,6 +88,9 @@ uint256 constant CHAIN_SOURCE = CHAIN_ETHEREUM;
uint256 constant BASE_18 = 1e18;
uint256 constant BASE_9 = 1e9;

uint256 constant BASE_GAS = 100000;
uint256 constant GAS_MULTIPLIER = 150000; // 1.5x
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried locally and the eth sent seems pretty low (0.001), I am not sure it will be enough for the message. So we can be more conservative and set this value to x3 first and then decrease if we are really too high

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested on gnosis to polygon and it worked pretty well. Maybe we can increase it but 3x seems a bit too much

@GuillaumeNervoXS GuillaumeNervoXS merged commit 1d2f965 into main Jan 31, 2024
8 checks passed
@GuillaumeNervoXS GuillaumeNervoXS deleted the feat/gas-estimation branch January 31, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants