From 76c95494743e2fa3ef4c4d6ad6779ccebec14e1f Mon Sep 17 00:00:00 2001 From: Karel Moravec Date: Wed, 15 May 2024 18:32:27 +0200 Subject: [PATCH] feat: fix checks --- datanode/api/trading_data_v2.go | 2 +- protos/sources/data-node/api/v2/trading_data.proto | 2 +- protos/sources/vega/commands/v1/commands.proto | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/datanode/api/trading_data_v2.go b/datanode/api/trading_data_v2.go index 61983117db5..45219d331ee 100644 --- a/datanode/api/trading_data_v2.go +++ b/datanode/api/trading_data_v2.go @@ -5279,7 +5279,7 @@ func (t *TradingDataServiceV2) EstimateTransferFee(ctx context.Context, req *v2. accumulatedDiscount, req.FromAccount, req.FromAccountType, - req.FromDerivedKey, + req.FromAmmKey, req.ToAccount, ) diff --git a/protos/sources/data-node/api/v2/trading_data.proto b/protos/sources/data-node/api/v2/trading_data.proto index 428d81cb92d..6e330a718f2 100644 --- a/protos/sources/data-node/api/v2/trading_data.proto +++ b/protos/sources/data-node/api/v2/trading_data.proto @@ -4705,7 +4705,7 @@ message EstimateTransferFeeRequest { string amount = 4; // Asset ID for the asset associated with the transaction. string asset_id = 5; - // Optional saction must be the owner of this AMM key key from which assets are transferred. + // Optional saction must be the owner of this AMM key key from which assets are transferred. // The `from_account` must be the owner of this AMM key. optional string from_amm_key = 6; } diff --git a/protos/sources/vega/commands/v1/commands.proto b/protos/sources/vega/commands/v1/commands.proto index cb8f64eb8be..792a4163e79 100644 --- a/protos/sources/vega/commands/v1/commands.proto +++ b/protos/sources/vega/commands/v1/commands.proto @@ -304,9 +304,9 @@ message Transfer { string amount = 5; // Reference to be attached to the transfer. string reference = 6; - // Optional AMM key from which assets are transferred. + // Optional AMM key from which assets are transferred. // The submitter of the transaction must be the owner of this AMM key. - // If provided, the 'from_account_type' must be REWARDS_VESTED, and the asset in this account + // If provided, the 'from_account_type' must be REWARDS_VESTED, and the asset in this account // must match the asset specified in the transfer. optional string from = 7;