Skip to content

Develop mechanism to refund unused tokens in connected chain call #2966

@lumtis

Description

@lumtis

Describe the Issue
In connected chain calls, the gateway give approval of the asset to the target contract, for unused funds the amount is sent back to the custody.

This amount should be refunded to the sender instead.

Considered solution

Add a remaining value in the CCTX outbound data. This value is refunded back to the sender when the outbound is processed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions