Skip to content

Comments

ybb optional slippage tolerance#166

Draft
godzillaba wants to merge 3 commits intofeat/ybbfrom
ha/ybb-optional-slippage-tolerance
Draft

ybb optional slippage tolerance#166
godzillaba wants to merge 3 commits intofeat/ybbfrom
ha/ybb-optional-slippage-tolerance

Conversation

@godzillaba
Copy link
Contributor

@godzillaba godzillaba commented Jan 16, 2026

repurpose the currently unused data argument of outboundTransferCustomRefund to allow the user to specify an optional slippage tolerance.

the user has to specify the slippage as abi.encode(0, minRecv). if we want to use the data arg for something else in the future and keep tooling forward compatible we can add other "types" in the first 32 bytes that dictate how to parse the following bytes

@waelsy123
Copy link
Contributor

LGTM, nit: it may be cleaner for us to encode extra data as struct and move the parsing and validation logic into dedicated method

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