Charge provisioning fee if smart wallet absent #8558
Labels
agoric-cosmos
cosmic-swingset
package: cosmic-swingset
enhancement
New feature or request
Inter-protocol
Overarching Inter Protocol
What is the Problem Being Solved?
Today, provisioning a wallet requires an explicit
PLEASE_PROVISION
message, which both charges a flat admission fee, and delivers the message to the smart wallet for actual provisioning. Since a single swingset message can be included per transaction, this ends up resulting in a poor UX where a new user must first explicitly provision the smart wallet in a first message, then perform their actual first interaction with the smart wallet.We do need to keep charging a flat fee for now for provisioning the smart wallet to prevent spam targeted at swingset, however we don't need to do it through an explicit transaction. A charge on first time use is sufficient.
Description of the Design
CheckAdmissibility
ofMsgWalletSpendAction
andMsgWalletAction
to charge the provision fee during withchargeAdmission
based on whether the sender has an entry or not inpublished.wallet.${agoric1address}
. This is a lookup conceptually similar to the lookup done against thehighPrioritySenders
list in the inbound ante handler (CheckAdmissibility
is performed in the vm_admission ante handler){}
when the message is admitted.PLEASE_PROVISION
action and queue it before the wallet actionSecurity Considerations
This does not change the fee for wallet provisioning, however it allows to block swingset spam at the cosmos level instead of the smart wallet level
Scaling Considerations
None
Test Plan
TBD
Upgrade Considerations
The cosmos changes require a chain software upgrade.
For the auto-provisioning approach, the smart wallet vat must be upgraded to support auto provisioning., and must happen before or at the same time as the chain software upgrade.
The text was updated successfully, but these errors were encountered: