-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix: minor issues NTRN-402 #43
Merged
zavgorodnii
merged 13 commits into
neutron_audit_informal_17_01_2023
from
fix/minor-issues
Mar 18, 2023
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
626faa6
make owner mandatory for neutron vault
sotnikov-s 8ba6cc1
make owner mandatory for neutron voting registry
sotnikov-s d8a308a
make owner mandatory for lockdrop vault
sotnikov-s caa9706
make owner mandatory for credits vault
sotnikov-s 1dc75d1
replace += with checked_add for neutron voting registry
sotnikov-s 06b7a91
replace += with checked_add for distribution
sotnikov-s b7a778c
add zero total shares check
sotnikov-s eec53fa
remove unused structs
sotnikov-s ae38065
add cfg validate func for treasury
sotnikov-s a7d40b5
delete TODO about timelock's subdao update
sotnikov-s 02ed4b4
update schemas NTRN-402
sotnikov-s 5b41f34
build contracts NTRN-402
sotnikov-s 65a5b48
fix misprints and add min_period validation
sotnikov-s File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
e8b52fab268f7bb5538b4b81e284a89eee824e4b9f9430eb147f64601bea3363 credits_vault.wasm | ||
e02c0faf19a093d4f304b5aae55c34a38b4dd5fcd153bf6060b4962d29fd7d49 credits_vault.wasm | ||
e1f198ec554470bd05f4081cf2309035a1369152b147bdc2ca2fad7120364641 cw4_group.wasm | ||
187c5a1e98b14384bf2e1bbbfddde4214f7e10e00dd5369c68f4dc3363a8a7bf cw4_voting.wasm | ||
6fc1a396d4763097b7b260a083e1c7f9de8d92b1a020c18cceee29f055d72df2 cwd_core.wasm | ||
676a948ace3832aaca1ffcb0809525bd8545437425eb22b39a640c4731b17e3f cwd_core.wasm | ||
c7ddd8a95dc3d1912249f12e7b036d9daeaac07af1e2c77ebe92a97aaab125b8 cwd_pre_propose_multiple.wasm | ||
047169a6e4e4b6fc5b2f7550376b2f1648554c54837f7631afa07fc3c6c34ce8 cwd_pre_propose_overrule.wasm | ||
35be8f8ebecfd8893eded5d63148fd1f68733a525f8f7a42f8b70c11bbaf60fb cwd_pre_propose_single.wasm | ||
77c2d5ef5199a936905920e53c8435b9bf89e919c4552a679813902ecc3b1d77 cwd_proposal_multiple.wasm | ||
994330de9edb83f32e1364f9d65ddcc37669bd2d22071220bad2028a93b82d5e cwd_proposal_multiple.wasm | ||
64d3e3dc1db548307654dd585f1bad1d3dc00d2758d2b71d988a71333bcea3c6 cwd_proposal_single.wasm | ||
8f86441f544654e6012cf4e56670c0ddbd2275c80aba64c923fe349889e0ed43 cwd_subdao_core.wasm | ||
bdddd6ea8f7dc36e1b73d97c7caf20f59a3f2e3544a307098fbd02d838f260bd cwd_subdao_pre_propose_overrule.wasm | ||
e98782b00d3a36f85dfe899025848beae3b330deefb818204d6251e431417f1a cwd_subdao_pre_propose_single.wasm | ||
be0fb8de87fad3da5f4fee52b27dbcef6426af56692401945873b2b0894779cc cwd_subdao_proposal_single.wasm | ||
aed528b20c9d432414858d0a825e945365145b3d375cb174fd7a8ba4f7234693 cwd_subdao_timelock_single.wasm | ||
a6a0f619d52fc90ab59e15358f7a5b2a34e570e31cdbf6881037198bc877c2ab lockdrop_vault.wasm | ||
9bbd1d908adc2e3d50ae3f3d74073a4d39c437c6b389fed2163eff3bf238ee28 neutron_distribution.wasm | ||
73c102d902e11e0eb070d53282e5e04656dc3a549defec596b36cbb3571e0f31 lockdrop_vault.wasm | ||
543678b0a2147d095dfe9076aad23b263422d321c98d61c969745b5c393968c0 neutron_distribution.wasm | ||
8c58519e5a278fbce1c912a5832cab7e29768b69f05c2338e2a10d584c517c5a neutron_reserve.wasm | ||
f4be156137da8588bf7215fa62a8bddb5d9cc31415c524716ebc1b53bd0448a8 neutron_treasury.wasm | ||
566cdb60a51e9ad83bc2bf69492f1fdd72931784dcc2648811adaa87d5565586 neutron_vault.wasm | ||
97a95c2ddae372f8d119cb188c1066bd3baccb7b37eae8cd704fe3ef19fbfd05 neutron_voting_registry.wasm | ||
e95ae0040e7cf295e483440715f57cf468c3b9badd0bb3ccd0103bacc5a46bdc neutron_treasury.wasm | ||
0704e6094cc92cbd8bf08eeaa52f17df944e6f73e6c27b79b636a90987cbcbf5 neutron_vault.wasm | ||
9d079e8b6b3032b4f1d17a0345b583fe3274dcfb293219c3305d44720e326ade neutron_voting_registry.wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
why did you change
Admin
toString
?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.
long story short: so it's simpler and common
simpler: because it's anyway eventually stored as
Addr
in the contract's cfg. just look a bit below at how this value was handled and how it's now handled.Admin
struct is very complicated to be passed, just look at the changes here: https://github.com/neutron-org/neutron/pull/166/files. if we passAdmin::CoreModule
, it simply sets the owner to the sender, so why don't allow sending the simple sender address?common: another reason is that we have the owner field as String in all other contracts
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.
okay, i prefer to trust you!