From 2970ae1f463563a452a629af65cf85c1286b3098 Mon Sep 17 00:00:00 2001 From: Abit Date: Mon, 31 Oct 2022 17:21:12 +0100 Subject: [PATCH 1/4] Fix withdraw_permission_claim fee payer --- app/api/ApplicationApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/ApplicationApi.js b/app/api/ApplicationApi.js index 147beac8af..42efbba25a 100644 --- a/app/api/ApplicationApi.js +++ b/app/api/ApplicationApi.js @@ -707,7 +707,7 @@ const ApplicationApi = { if (!feeAsset) { // use default fee asset selection if none given feeAsset = accountUtils.getFinalFeeAsset( - from, + to, "withdraw_permission_claim" ); } From d3b8030553988de57941201c2c1248bf3089bc80 Mon Sep 17 00:00:00 2001 From: Abit Date: Mon, 31 Oct 2022 17:25:06 +0100 Subject: [PATCH 2/4] Fix vesting_balance_create fee payer --- app/api/ApplicationApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/ApplicationApi.js b/app/api/ApplicationApi.js index 42efbba25a..6da507c787 100644 --- a/app/api/ApplicationApi.js +++ b/app/api/ApplicationApi.js @@ -836,7 +836,7 @@ const ApplicationApi = { if (!feeAsset) { // use default fee asset selection if none given feeAsset = accountUtils.getFinalFeeAsset( - from, + creator, "vesting_balance_create" ); } From fade45c5c55558cee5844096799824584640d0b9 Mon Sep 17 00:00:00 2001 From: Abit Date: Mon, 31 Oct 2022 17:26:14 +0100 Subject: [PATCH 3/4] Fix ticket_create fee payer --- app/api/ApplicationApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/ApplicationApi.js b/app/api/ApplicationApi.js index 6da507c787..44d58f0bfb 100644 --- a/app/api/ApplicationApi.js +++ b/app/api/ApplicationApi.js @@ -887,7 +887,7 @@ const ApplicationApi = { if (!feeAsset) { // use default fee asset selection if none given - feeAsset = accountUtils.getFinalFeeAsset(from, "ticket_create"); + feeAsset = accountUtils.getFinalFeeAsset(account, "ticket_create"); } // ensure all arguments are chain objects From 248adf1986f34c214767f7efe59dda8c2d3e3724 Mon Sep 17 00:00:00 2001 From: Abit Date: Mon, 31 Oct 2022 17:30:27 +0100 Subject: [PATCH 4/4] Fix fee payers of liquidity pool operations --- app/api/ApplicationApi.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/api/ApplicationApi.js b/app/api/ApplicationApi.js index 44d58f0bfb..13776565e4 100644 --- a/app/api/ApplicationApi.js +++ b/app/api/ApplicationApi.js @@ -934,7 +934,7 @@ const ApplicationApi = { if (!feeAsset) { // use default fee asset selection if none given feeAsset = accountUtils.getFinalFeeAsset( - from, + account, "liquidity_pool_create" ); } @@ -985,7 +985,7 @@ const ApplicationApi = { if (!feeAsset) { // use default fee asset selection if none given feeAsset = accountUtils.getFinalFeeAsset( - from, + account, "liquidity_pool_delete" ); } @@ -1033,7 +1033,7 @@ const ApplicationApi = { if (!feeAsset) { // use default fee asset selection if none given feeAsset = accountUtils.getFinalFeeAsset( - from, + account, "liquidity_pool_deposit" ); } @@ -1089,7 +1089,7 @@ const ApplicationApi = { if (!feeAsset) { // use default fee asset selection if none given feeAsset = accountUtils.getFinalFeeAsset( - from, + account, "liquidity_pool_withdraw" ); } @@ -1142,7 +1142,7 @@ const ApplicationApi = { if (!feeAsset) { // use default fee asset selection if none given feeAsset = accountUtils.getFinalFeeAsset( - from, + account, "liquidity_pool_exchange" ); }