Skip to content

Conversation

@nicholaspai
Copy link
Member

An alternative to the MulticallHandler designed to support permissioned accounts to deposit ERC20's from hyperevm into an end user's hypercore account

Signed-off-by: nicholaspai [email protected]

Signed-off-by: nicholaspai <[email protected]>
Signed-off-by: nicholaspai <[email protected]>
Signed-off-by: nicholaspai <[email protected]>
Signed-off-by: nicholaspai <[email protected]>
bmzig
bmzig previously approved these changes Nov 17, 2025
@nicholaspai nicholaspai marked this pull request as ready for review November 17, 2025 22:08
Signed-off-by: nicholaspai <[email protected]>
bmzig
bmzig previously approved these changes Nov 18, 2025
* @param amount The amount of tokens on HyperEVM to deposit.
* @param user The address of the user on Hypercore to send the tokens to.
*/
function depositToHypercore(address token, uint256 amount, address user) external nonReentrant {
Copy link
Contributor

Choose a reason for hiding this comment

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

This assumes that the tokens are dropped on the contract atomically, right?

What are the downsides of doing a transferFrom from msg.sender to pull the tokens in?

Copy link
Member Author

Choose a reason for hiding this comment

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

that's a great call, I overlooked this flow. We definitely should pull funds from the msg.sender in depositToHypercore, unlike in handleAcrossV3Message

Signed-off-by: nicholaspai <[email protected]>
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedhyper-evm-lib@​0.0.0100100100100100

View full report

@nicholaspai nicholaspai requested a review from mrice32 November 18, 2025 19:32
Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

4 participants