Skip to content

Commit

Permalink
Merge pull request cardano-foundation#261 from input-output-hk/feat/i…
Browse files Browse the repository at this point in the history
…mprove-transfer-workflow

refactor: improved transfer workflow with proper funds limits
  • Loading branch information
rhyslbw committed Jan 11, 2021
2 parents fb3955a + 0d31543 commit 2e5bf9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/check/workflows/transfer.ros
Expand Up @@ -19,7 +19,7 @@ request_funds(1){
loaded_account = find_balance({
"account_identifier": {{random_account.account_identifier}},
"minimum_balance":{
"value": "1000000",
"value": "10000000",
"currency": {{currency}}
},
"require_coin":true
Expand Down Expand Up @@ -52,12 +52,12 @@ transfer(10){
// We set the max_fee_amount to know how much buffer we should
// leave for fee payment when selecting a sender account.
dust_amount = "1000000";
max_fee_amount = "10000000";
max_fee_amount = "5000000";
send_buffer = {{dust_amount}} + {{max_fee_amount}};

// We look for a coin of value >= the reserved_amount to create
// a transfer with change (reserved_amount is max_fee_amount + dust_amount x 2).
reserved_amount = "12000000";
reserved_amount = "7000000";
sender = find_balance({
"minimum_balance":{
"value": {{reserved_amount}},
Expand Down

0 comments on commit 2e5bf9c

Please sign in to comment.