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

fix(protocol): address miscellaneous feedbacks from Sigma Prime (TKO26) #15600

Merged
merged 11 commits into from
Jan 30, 2024

Conversation

adaki2004
Copy link
Contributor

@adaki2004 adaki2004 commented Jan 29, 2024

kép

Please see this modification + some of my concerns/comments in the notion file at raw TKO_26!

#15600

Some notes to subpoints:
Nr. 6 Unnecessary functions in SignalService and AddressManager. → It would create a diff design scheme we followed, and i understand it is deployment overhead, but would involve to change OwnerUUPS and others inheriting from it OR NOT inheriting from that contract but a similar, without having the pasue(), unPause().

Nr. 13: Cannot find this part:
” [85-87] of LibVerifying.sol contain inequalities where we have for an unsigned inte-
ger x which will never return true. “

Nr. 15.: Total Supply Of TKO Token Difficult To Determine
@daniel Wang
As burning is not an actual burn (in our contract and complex code, i dont exactly know what is the best was to decouple)

Nr. 19: Related Asset(s): L1/hooks/AssignmentHook.sol

It can if tip is, high, but tip is set by the proposer, why would anyone want to give such (unrelaistic amount), they would just shoot in their legs, because it even has to send it with msg.value.

Nr. 21:
Provers May Contest Their Own Proof

I do not see anyone benefitting from this. Contest bond shall be big enough.

Also if some may submitted (accidentally ?) a wrong proof, he (the original prover) can correct it’s mistake by contesting and re-proving with a higher tier, so in such case it does not lose all his bonds.

Copy link

vercel bot commented Jan 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
bridge-ui-v2-a6 ✅ Ready (Inspect) Visit Preview Jan 30, 2024 10:02am

Copy link
Contributor

@Brechtpd Brechtpd left a comment

Choose a reason for hiding this comment

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

  • I would move LibUint512Math and TaikoL2Signer to the test folder, they are only used in the tests. Only GOLDEN_TOUCH_ADDRESS is actually used and so can just be copied to TaikoL2.sol.
  • We may want to update the Merkle trie/RLP decoding to the latest versions used in optimism: https://github.com/ethereum-optimism/optimism/tree/develop/packages/contracts-bedrock/src/libraries. I haven't diffed them, but seems likely there are also some optimizations in there. In any case, we should definitely check if the new versions contain fixes or improvements.

packages/protocol/contracts/L1/tiers/ITierProvider.sol Outdated Show resolved Hide resolved
packages/protocol/contracts/L1/libs/LibVerifying.sol Outdated Show resolved Hide resolved
packages/protocol/contracts/tokenvault/ERC1155Vault.sol Outdated Show resolved Hide resolved
@dantaik
Copy link
Contributor

dantaik commented Jan 30, 2024

  • I would move LibUint512Math and TaikoL2Signer to the test folder, they are only used in the tests. Only GOLDEN_TOUCH_ADDRESS is actually used and so can just be copied to TaikoL2.sol.

See this PR: #15604

I'll work on this one later.

@adaki2004
Copy link
Contributor Author

  • I would move LibUint512Math and TaikoL2Signer to the test folder, they are only used in the tests. Only GOLDEN_TOUCH_ADDRESS is actually used and so can just be copied to TaikoL2.sol.

See this PR: #15604

Addressed this here too. And all the changes you were recommending.

@dantaik dantaik removed the request for review from davidtaikocha January 30, 2024 11:38
@dantaik dantaik added this pull request to the merge queue Jan 30, 2024
Merged via the queue into alpha-6 with commit 760d3dc Jan 30, 2024
14 checks passed
@dantaik dantaik deleted the miscellaneous_tko26 branch January 30, 2024 11:39
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