bitromortac
64ecf8539a
swaps: fix normal amount formulas
...
In a normal (forward) swap (onchain->offchain):
send_amount = receive_amount * (1 + service_percentage) + normal_fee ,
and vice versa:
receive_amount = (send_amount + normal_fee) / (1 + service_percentage) ,
i.e., the service fee is charged on the received offchain amount.
2020-12-17 07:25:54 +01:00
..
2020-12-17 07:25:48 +01:00
2020-12-10 14:36:31 +01:00
2020-09-01 18:15:37 +02:00
2020-12-10 17:39:12 +01:00
2020-06-23 19:25:07 +02:00
2020-10-18 22:21:06 +02:00
2020-12-08 10:00:34 +01:00
2020-08-20 18:58:52 +02:00
2020-08-20 17:50:39 +02:00
2020-10-24 07:49:06 +02:00
2020-08-25 20:29:08 +02:00
2020-11-25 08:53:19 +01:00
2020-12-08 17:08:03 +01:00
2020-12-08 17:08:03 +01:00
2020-10-24 08:03:13 +02:00
2020-12-08 12:21:56 +01:00
2020-08-20 17:50:39 +02:00
2020-10-15 16:25:06 +02:00
2020-12-06 23:35:39 -03:00
2020-11-25 11:47:30 +01:00
2020-12-09 09:04:04 +01:00
2020-12-09 09:04:04 +01:00
2020-12-06 23:35:39 -03:00
2020-12-16 11:02:09 +01:00
2020-12-11 19:55:56 +01:00
2020-09-04 16:11:01 +02:00
2020-12-10 17:39:12 +01:00
2020-11-26 12:07:03 +01:00
2020-10-23 02:35:20 +02:00
2020-09-05 17:49:02 +02:00
2020-06-22 03:40:04 +02:00
2020-11-20 08:51:01 +01:00
2020-11-26 20:01:05 +01:00
2020-11-24 23:44:09 +01:00
2020-10-24 05:18:16 +02:00
2020-09-24 01:52:35 +02:00
2020-11-20 08:51:01 +01:00
2020-09-18 20:54:09 +02:00
2020-12-15 15:34:26 +01:00
2020-11-16 14:50:22 +01:00
2020-12-10 14:36:31 +01:00
2020-12-13 18:08:36 +01:00
2020-06-22 22:48:13 +02:00
2020-11-18 15:36:15 +01:00
2020-09-15 15:35:57 +00:00
2020-10-23 02:17:31 +00:00
2020-11-04 01:49:57 +01:00
2020-10-06 19:24:10 +02:00
2020-10-07 20:39:00 +02:00
2020-12-17 07:25:54 +01:00
2020-12-16 11:03:35 +01:00
2020-12-10 17:39:12 +01:00
2020-12-09 16:09:12 +01:00
2020-12-09 14:10:50 +01:00
2020-10-18 20:37:25 +02:00
2020-12-16 12:25:41 +01:00