Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Staking Precompiles #358
Staking Precompiles #358
Changes from all commits
832726b
f179e91
737c0fd
cf4e42d
9efad64
69a32b7
71d5660
1f10d75
97fc054
688a324
b3abf42
f154f50
270ea2d
ad59685
0d2a184
a539aaa
1e5f8d1
28a7e50
ab7fea5
026d4c9
fbb9852
15aae62
a46d404
106beec
17ebf9b
93b197c
4d8838e
5f9a279
e543abb
6c5b3b3
d5c24c7
481f43d
84789de
3ff424f
f2660f3
883a892
ca44e43
9e6c7f8
eba6070
b12d12e
78e46ab
d0d988e
d4ec7ee
0f08b90
821988e
6b2da9b
6fc8583
3c1ca8a
ee0cd4c
4367b09
6a61969
189a204
5e0c1ee
0e69a5e
0ac505c
9f151cf
d184ab9
e9c6bd0
11a3d68
810de06
e0f0eef
eff5128
140dbbd
5461907
8cdd26e
28fbe48
fa41eb3
a39da02
5e8374c
d8da583
1f3bedb
32bb16f
e7eed6e
8197789
083a1c3
262aef0
0a216c2
f44f96b
68eb3db
20e951d
c109b36
2da7a9d
009d688
24da4bf
cedc825
c3fc676
06b2fdd
89675f1
49bb673
fd8c7bc
898f02c
ff4e4c9
91b4dfb
b8842b2
ec9ca76
dd33e71
f2d6443
d116efb
97c9436
cb0addd
9557521
b8f3122
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not quite following this TODO... is it still relevant / should it be done before merging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we'll do it in a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a followup makes more sense. There is a design decision to be made. Basically the dilemna is this.
We need to get bogus code under every precompile address. The precompile addresses are codified in the
precompiles
crate, but the genesis config (which includes the pre-deployed bogus code) is set up here.So the decision is whether we have the list of addresses in both places (as we do now), or do we call into the
precompiles
crate to get them somehow. I started sketching that also, but still didn't like it because even the way I sketched it the addresses were still in two places (although at least they were in the same file).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be nice to document what this amount is (is it 10^-18 units?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like it's used below as well, so maybe a comment at the top of the contract...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A better variable name would go a long way. maybe
bond_amount
. Good news the names don't affect the signatures so we wouldn't have to regenerate them. Agree about the units. Luckily solidity makes this nice with keywords likeether
,wei
, etc.