Token asset management interface with smart contract wallet

A proposal to manage fungible tokens by the user’s smart contract wallet, which provides a new way to manage assets, utilizes the programmability of the smart contract wallet, and also provides more playability.

EOA wallet has no state and code storage, and the smart contract wallet is different.

AA is a direction of the smart contract wallet, which works around abstract accounts.

The smart contract wallet allows the user’s own account to have state and code, bringing programmability to the wallet. We think there are more directions to expand. For example, token asset management, functional expansion of token transactions, etc.

The proposal aims to achieve the following goals:

  1. Assets are allocated and managed by the wallet itself, such as approve and allowance, which are configured by the user’s contract wallet, rather than controlled by the token asset contract, to avoid some existing ERC-20 contract risks.
  2. Add the transferFungibleToken function, the transaction initiated by the non-smart wallet itself or will verify the allowance amount
  3. Users can choose batch approve and batch transfer. Batch approve can greatly reduce gas. The contract wallet itself manages the authorization status of all assets, and batch approve can be performed without calling multiple asset contracts.
  4. Users can choose to add hook function before and after their transferFungibleToken to increase the user’s more playability
  5. The user can choose to implement the receiveFungibleToken function