Skip to content

improve: add Tron variants for SpokePoolPeriphery and SwapProxy - #1502

Open
tbwebb22 wants to merge 3 commits into
masterfrom
taylor/tron-spokepool-periphery
Open

improve: add Tron variants for SpokePoolPeriphery and SwapProxy#1502
tbwebb22 wants to merge 3 commits into
masterfrom
taylor/tron-spokepool-periphery

Conversation

@tbwebb22

Copy link
Copy Markdown
Contributor

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b5ba27e5b2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


// Deploy the swap proxy with reference to the permit2 address
swapProxy = new SwapProxy(address(_permit2));
swapProxy = _deploySwapProxy(address(_permit2));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Instantiate the Tron proxy outside the base constructor

When Tron_SpokePoolPeriphery is constructed, this call occurs inside the SpokePoolPeriphery constructor, where Solidity resolves virtual calls to the implementation defined by the contract currently being constructed rather than the derived override. Consequently _deploySwapProxy creates a regular SwapProxy, so swaps where Tron USDT is transferred from the proxy to the exchange or back to the periphery still revert on its false return value, defeating the purpose of the Tron variant.

Useful? React with 👍 / 👎.

fusmanii
fusmanii previously approved these changes Jul 25, 2026
@tbwebb22 tbwebb22 changed the title add Tron variants for SpokePoolPeriphery and SwapProxy improve: add Tron variants for SpokePoolPeriphery and SwapProxy Jul 25, 2026
…Token Transfers (#1505)

* address audit finding with comment updates

* refine comments
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.

2 participants