StarknetByExample icon indicating copy to clipboard operation
StarknetByExample copied to clipboard

Feature: Account Abstraction - Spending Limits

Open egeaybars123 opened this issue 1 year ago • 5 comments

I thought I could create a Cairo contract and a content about Account Abstraction on Starknet. Spending/withdrawal limits for Starknet accounts for ERC-20 tokens could be added, and the developers could learn more about how to write their own account contracts on Starknet with Starknet By Example website. Do you think it is a good idea to add this feature on Starknet By Example?

egeaybars123 avatar Jul 04 '24 09:07 egeaybars123

Hello! There is already an account abstraction section with a simple contract account example. Adding specific examples of account abstraction is a good idea (see #191).

Could you expand a little bit on what features you have in mind regarding spending/withdrawal limits?

julio4 avatar Jul 05 '24 08:07 julio4

Hello! There is already an account abstraction section with a simple contract account example. Adding specific examples of account abstraction is a good idea (see #191).

Could you expand a little bit on what features you have in mind regarding spending/withdrawal limits?

Regarding spending limits, a user will be able to set a spending limit for a token address for any amount they want. Their limit will decrease if they call the approve or transfer function on the token contract address. The limit will also reset after any timestamp they want (daily, weekly or every 12 hours).

egeaybars123 avatar Jul 05 '24 10:07 egeaybars123

Hello @egeaybars123 can you please assign this issue to me?

ScottyDavies avatar Aug 26 '24 13:08 ScottyDavies

Hello @egeaybars123 can you please assign this issue to me?

Hey @ScottyDavies, I'm already working on it at #236.

egeaybars123 avatar Aug 26 '24 17:08 egeaybars123

Hey @julio4, any updates on the feedback?

egeaybars123 avatar Sep 07 '24 11:09 egeaybars123