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
As an aside, the Universal Wallet has an experimental ticket for integrating the two systems.
Scope
Create a swap form that lets user construct an Authorization Action, as described by the Delegation Classification System, to swap Token A for Token B.
The swap form should include fields to set token in/out amounts and fill deadlines. Similar to how swaps work on Uniswap.
Context
The Universal wallet uses the MetaMask Delegation Framework for handling wallet delegations, authorizations and intents. The framework includes 20+ enforcer smart contract modules for dictating transaction execution capabilities.
The unique approach lends itself towards wallet level swap intents i.e. action authorizations.
Similar to the ERC-7683 standard proposed by Uniswap and Across.
As an aside, the Universal Wallet has an experimental ticket for integrating the two systems.
Scope
Create a swap form that lets user construct an Authorization Action, as described by the Delegation Classification System, to swap Token A for Token B.
The swap form should include fields to set token in/out amounts and fill deadlines. Similar to how swaps work on Uniswap.
Required Enforcers:
Core Logic
Use
ERC20BalanceGteEnforcer.sol
to define the swap ratio for Token A and Token B.Example:
Conditions:
Result:
Supporting Logic
Use the
LimitedCallsEnforcer
to limit execution to 1 redemption.Use
TimestampEnforcer.sol
orBlockNumberEnforcer.sol
enforcers to set a fill deadline i.e. 10 mins or less.Outcome
The swap authorizations do not need to execute.
For now the authorizations can be saved in
apps/api-delegations
service and later broadcast to a filler/solver network.The delegation type should be
SwapAuthorization
and added to the Delegations Classification System.The text was updated successfully, but these errors were encountered: