From CasperTech Wiki
Jump to navigation Jump to search

One feature of CasperLet which sometimes causes confusion is refunds.

There is a security feature which affects refunds, which often results in landlords thinking that the wrong amount has been refunded, and seems to have resulted in a general consensus (based on comments in the group) that CasperLet refunds are "broken". This is simply not the case.

The basic issue is: CasperLet refunds are granted pro-rata, however, time added via a manual adjustment on the website is not considered as part of this.

This is an important security consideration, to help protect you. Without it, a malicious manager could rent a rental unit, add years of time to it, and then perform a refund, thereby emptying your account.


"Hello - i have set the rentbox for daily payment 28L - a tenant had rent for a lot of days - and now the Tenant have 4 days and 5 hours remaining time - i clicked "+refund" but the rentbox paid 18L$ only - please why pay (refund) the rentbox not exactly? it is a example only - my other rentboxes with high-Value-rent do also pay the wrong refund!"

In this case, the rental log showed:

2017-08-26 19:58:41 - Customer paid L$182 to start the rental
2017-08-29 17:17:00 - Landlord added extra time to the rental (time adjustment from website) - NOT COUNTED
2017-08-31 16:34:00 - Customer added L$182 to the rental
2017-09-05 20:14:26 - Customer added L$26 to the rental
2017-09-06 17:47:49 - Customer added L$182 to the rental
2017-09-15 14:05:32 - Tenancy terminated, L$18 refunded

Here's how the system worked out the maximum payable refund:

Amount paid by the tenant - L$572
Rental cost at time of refund: L$28 per day
Rental commenced on: 26th August
Rental refunded on: 15th of September

Rental lasted for: 19.78 days. 19.78 x L$28 = L$554

So amount refundable is L$18


If you wish to grant extra time to a rental and also allow that time to be refundable as L$ then you need to pay the rental unit in-world. This will always be tracked as a genuine payment, and it's secure because any malicious manager would need to pay the money in, in order to receive the refund.