You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to "rescue tokens" by signature on the Substrate side which can come about using a handler or potentially not. This task should include investigate into the potential routes we can take given Substrate's capabilities.
Overview
We want to "rescue tokens" by signature on the Substrate side which can come about using a handler or potentially not. This task should include investigate into the potential routes we can take given Substrate's capabilities.
Details
There is already a
treasury
account inprotocol-substrate
and the fees are being sent there:https://github.com/webb-tools/protocol-substrate/blob/main/pallets/token-wrapper/src/lib.rs#L105
https://github.com/webb-tools/protocol-substrate/blob/main/pallets/token-wrapper/src/lib.rs#L291
So we don't need to implement a separate treasury pallet. What we can instead do is the following:
rescue_tokens
function to thetoken-wrapper
pallet. This function signature forrescue_tokens
should look something like:execute_rescue_tokens
function to thetoken-wrapper-handler
pallet.rescue_tokens
via thesignature-bridge
.The text was updated successfully, but these errors were encountered: