-
Notifications
You must be signed in to change notification settings - Fork 18
refactor: update withheld amount maintenance #213
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
8056c87
refactor: update withheld amount maintenance
kupermind 80c47a4
chore: correcting number of optimizations in forge
kupermind b7ccf4d
test: adding test
kupermind 4d543af
chore: linters
kupermind d5dfddc
doc: internal audit 7
da3d8e9
refactor: addressing internal audit
kupermind 2c4d96d
test: correcting test
kupermind fd4aea0
doc: adding up-to-date diagram
kupermind cd5a0a9
doc: adding up-to-date diagram
kupermind e38d964
doc: adding up-to-date diagram
kupermind 1555832
refactor: account for withheld amount update flag
kupermind f36648a
refactor: total amount correction
kupermind a71476d
chore: comment
kupermind 87bac92
tes: test correction
kupermind c1ba5f6
tes: test correction
kupermind 96621e5
Merge pull request #217 from valory-xyz/refactor_target_dispenser
kupermind ceb931c
doc: updating flowchart
kupermind 6cbc6d2
Update README.md
mariapiamo d4de5d2
chore: syncing on mainnet name in globals
kupermind 998b668
Merge pull request #215 from valory-xyz/v1.3.3-internal-audit
kupermind e885e71
Merge pull request #214 from valory-xyz/update_withheld_amount_tests
kupermind adc82db
doc: re-audit 1.3.3
368b741
Merge pull request #218 from valory-xyz/v1.3.3-internal-audit
kupermind dec034b
chore: Addressing internal audit 2
kupermind 513a2fc
refactor: no revert
kupermind 1e272d6
Merge pull request #219 from valory-xyz/address_internal_audit2
kupermind 82b4e18
Merge pull request #216 from valory-xyz/address_internal_audit
kupermind cb47f9d
chore: static audit update
kupermind 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 hidden or 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,3 +1,4 @@ | ||
| out | ||
| node_modules | ||
| .env | ||
| coverage | ||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Internal audit of autonolas-tokenomics | ||
| The review has been performed based on the contract code in the following repository:<br> | ||
| `https://github.com/valory-xyz/autonolas-tokenomics` <br> | ||
| commit: `4d543af4efefea0380a1c5b1d79f5e574b4c26f0` or `tag: v1.3.3-pre-internal-audit`<br> | ||
|
|
||
| ## Objectives | ||
| The audit focused on WithheldAmount fix in TargetDispenserL2 contract | ||
|
|
||
| ## Issue | ||
| ### Medium. Logical issue | ||
| ``` | ||
| This is not a bug in the current code. | ||
| However, the essence of the fix is in conflict with this: | ||
| function syncWithheldAmount(bytes memory bridgePayload) external payable {} | ||
| In the current code, anyone can execute it. | ||
| It zeroid withheldAmount = amount - normalizedAmount; | ||
| They need to be given equal rights (OwnerOnly). | ||
| To discussion! | ||
| ``` | ||
| [] |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| [profile.default] | ||
| #solc = "0.8.30" | ||
| auto_detect_solc = true | ||
| src = "contracts" | ||
| out = "out" | ||
| libs = ["lib"] | ||
| optimizer = true | ||
| optimizer_runs = 100 | ||
| evm_version = "prague" | ||
|
|
||
| remappings = [ | ||
| "canonical-weth=node_modules/canonical-weth", | ||
| "@gnosis.pm=node_modules/@gnosis.pm", | ||
| "@prb=node_modules/@prb", | ||
| "@uniswap=node_modules/@uniswap", | ||
| "wormhole-solidity-sdk=node_modules/wormhole-solidity-sdk", | ||
| ] |
This file contains hidden or 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 hidden or 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 hidden or 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.
Introducing function described in the WD.