Sweeping an account's default voucher results in an error #91

Open
opened 2025-07-02 15:42:13 +02:00 by kamikazechaser · 2 comments

activeSym not found in vouchers

If the active voucher balance is 0 or not found in the holdings, it should still show up and USSB be accessible. There are several scenarios that can lead to the voucher not appearing on the holdings endpoint.

activeSym not found in vouchers If the active voucher balance is 0 or not found in the holdings, it should still show up and USSB be accessible. There are several scenarios that can lead to the voucher not appearing on the holdings endpoint.
kamikazechaser added the
Priority
Critical
label 2025-07-02 15:42:13 +02:00
Member

As it is, the system reads the holdings endpoint and gets the current active symbol. This is then used to update the current balance.
The ManageVouchers handler is set to error as the assumption was a user's holdings will remain intact despite the balance being 0

If a voucher can fail to appear on the holdings response, an approach we can use is set the first voucher in the response as the active voucher. Would this be a fix?

The other option is clearing the active voucher data and this will prevent the user from using the send node and swap.

As it is, the system reads the holdings endpoint and gets the current active symbol. This is then used to update the current balance. The `ManageVouchers` handler is set to error as the assumption was a user's holdings will remain intact despite the balance being 0 If a voucher can fail to appear on the holdings response, an approach we can use is set the first voucher in the response as the active voucher. Would this be a fix? The other option is clearing the active voucher data and this will prevent the user from using the send node and swap.
Author
Owner

If a voucher can fail to appear on the holdings response, an approach we can use is set the first voucher in the response as the active voucher. Would this be a fix?

Yes this can work.

> If a voucher can fail to appear on the holdings response, an approach we can use is set the first voucher in the response as the active voucher. Would this be a fix? Yes this can work.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: grassrootseconomics/sarafu-vise#91
No description provided.