From ad16ac391b8f30882b456e8b528729fdd58c3084 Mon Sep 17 00:00:00 2001 From: nfel Date: Mon, 5 May 2025 15:55:59 +0330 Subject: [PATCH] v2: effective commission added Signed-off-by: nfel --- wallet/v1/msg.proto | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/wallet/v1/msg.proto b/wallet/v1/msg.proto index 7e32ef3..57e902d 100644 --- a/wallet/v1/msg.proto +++ b/wallet/v1/msg.proto @@ -446,13 +446,20 @@ message NetworkList { message Commission { uint64 id = 1; string name = 2; - double service = 3; - double tax = 4; - double total = 5; - optional string collector = 6; - optional string description = 7; - string updated_at = 10; - string created_at = 11; + double service_static = 3; + double service_percentage = 4; + double tax_static = 5; + double tax_percentage = 6; + optional string collector = 7; + optional string description = 8; + string updated_at = 9; + string created_at = 10; +} + +message EffectiveCommission { + double service = 1; + double tax = 2; + double total = 3; } /* @@ -562,7 +569,7 @@ message CalcBuyAssetRes { int64 calculated_irt_amount = 2; double calculated_asset_amount = 3; AssetDiscountRes discount_amount = 4; - Commission commission = 5; + EffectiveCommission commission = 5; // double buy_min_amount = 7; }