gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Account creation bonus policy.


From: gnunet
Subject: [libeufin] branch master updated: Account creation bonus policy.
Date: Mon, 18 Sep 2023 14:30:44 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 2b8d626e Account creation bonus policy.
2b8d626e is described below

commit 2b8d626e65aca06c214776211f12272576542022
Author: MS <ms@taler.net>
AuthorDate: Mon Sep 18 14:29:43 2023 +0200

    Account creation bonus policy.
    
    The balance of a new customer is always zero, and if the
    bank wants to award a registration bonus, then it'll make
    a wire transfer to the new customer.
---
 bank/src/main/kotlin/tech/libeufin/bank/accountsMgmtHandlers.kt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bank/src/main/kotlin/tech/libeufin/bank/accountsMgmtHandlers.kt 
b/bank/src/main/kotlin/tech/libeufin/bank/accountsMgmtHandlers.kt
index 1608aa19..a5b12d6f 100644
--- a/bank/src/main/kotlin/tech/libeufin/bank/accountsMgmtHandlers.kt
+++ b/bank/src/main/kotlin/tech/libeufin/bank/accountsMgmtHandlers.kt
@@ -92,15 +92,13 @@ fun Routing.accountsMgmtHandlers() {
             parseTalerAmount(this)
         }
         val bonus = db.configGet("registration_bonus")
-        val initialBalance = if (bonus != null) parseTalerAmount(bonus) else 
TalerAmount(0, 0)
         val newBankAccount = BankAccount(
             hasDebt = false,
             internalPaytoUri = req.internal_payto_uri ?: genIbanPaytoUri(),
             owningCustomerId = newCustomerRowId,
             isPublic = req.is_public,
             isTalerExchange = req.is_taler_exchange,
-            maxDebt = maxDebt,
-            balance = initialBalance
+            maxDebt = maxDebt
         )
         if (!db.bankAccountCreate(newBankAccount))
             throw internalServerError("Could not INSERT bank account despite 
all the checks.")

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]