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
The current approve function accepts an _exp parameter but ignores it. Implement full allowance expiration logic so approvals auto-expire after a specified ledger.
Requirements
Change allowance storage from i128 to AllowanceEntry { amount: i128, expiration_ledger: u32 }
Modify approve() to store expiration ledger
Modify read_allowance() to check current ledger vs expiration
Modify transfer_from() and burn_from() to enforce expiration
Summary
The current
approvefunction accepts an_expparameter but ignores it. Implement full allowance expiration logic so approvals auto-expire after a specified ledger.Requirements
i128toAllowanceEntry { amount: i128, expiration_ledger: u32 }approve()to store expiration ledgerread_allowance()to check current ledger vs expirationtransfer_from()andburn_from()to enforce expirationincrease_allowanceanddecrease_allowance