Skip to content

Commit

Permalink
lower required balance for token txs
Browse files Browse the repository at this point in the history
  • Loading branch information
hedi-edelbloute committed Dec 7, 2023
1 parent 201bf00 commit 7606608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ledger-live-common/src/families/cardano/specs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const currency = getCryptoCurrencyById("cardano");
const minBalanceRequired = parseCurrencyUnit(currency.units[0], "2.2");
const minBalanceRequiredForMaxSend = parseCurrencyUnit(currency.units[0], "1");
const minBalanceRequiredForDelegate = parseCurrencyUnit(currency.units[0], "3");
const minSpendableRequiredForTokenTx = parseCurrencyUnit(currency.units[0], "3");
const minSpendableRequiredForTokenTx = parseCurrencyUnit(currency.units[0], "1");

const cardano: AppSpec<Transaction> = {
name: "cardano",
Expand Down

1 comment on commit 7606608

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Bot] Testing with 'Nitrogen' ✅ 4 txs ($25.90) ⏲ 6min 27s

✅ 1 specs are successful: cardano

What is the bot and how does it work? Everything is documented here!

⚠️ 1 spec hints
  • Spec cardano:
    • mutations should define a testDestination(): move ~10% token
Details of the 4 mutations

Spec cardano (7)

Spec cardano found 7 Cardano accounts. Will use CardanoADA 6.1.2 on nanoSP 1.1.0
Cardano 1 cross: 1.34479 ADA (127ops) (addr1q9a2ansqkmlt6r0pfamwce9hy0rp44xjre2dz63ae38ccfrwsr839ept3mchu8mqmf2mfesqewdeduhvpm4eefu4lk6qlzfmna on 1852'/1815'/0'/0/55) cardano#0 js:2:cardano:bb8ec3355bc015075ecb304f0bfc8b0dec431688938b61b2ca317c71989590bbe523dea846ca8dcd97132a58a73ee344487948951cb09b8c4f20d64dbd4c6405:cardano
Cardano 2: 8.37425 ADA (118ops) (addr1qxsp3zcjczux9xznpgsygev5aeepgn84p4hmhzvuy09qzjh4lymu3xuf47htdrl7f5s4ptpckhaf6u5lr0vk23jlsjhqlauxpu on 1852'/1815'/1'/0/48) cardano#1 js:2:cardano:761016d3b64d3ddff1f391b88a1d7ee2045fcdee5d5f635241a0f5211cd354b0f1c45abfe7e962c147de304d8dbdd18cb6bef4a52a133ef64f00793ebbc26b79:cardano
Cardano 3: 9.82552 ADA (87ops) (addr1qye6cr0spgutyt4n0e276mtqaly0jxtjh9967zgtgumdqhhlw0zs7dasu3m0qqen37eyyssdkjy9urxr0tfm3ej2fz8sr3w2e3 on 1852'/1815'/2'/0/33) cardano#2 js:2:cardano:5600aa12b09a4b74baaf4a06a5715e7d2181e885713797fce2d93385224683632b0318a9edf19fea3d3c7e90ae6b8d2694d65be3cf26fbce7104f37512c2f8f3:cardano
Cardano 4: 8.37253 ADA (114ops) (addr1q8nc44vu2zz3p3l4qcleuad0lwqjexshldgaxnqcna5cku8ey3teslxzrx7fdxn36e80yzync6j4e0zx33gq0tzlaskqts3w6d on 1852'/1815'/3'/0/53) cardano#3 js:2:cardano:58a62f7388caa92bd71bb09aeddfe04b4088eda52b855d358c4321d5d4db62059d119f9740b2f030317bf13bb0ae8ba651eb6e5e19b6437941c197172586f7b0:cardano
Cardano 5: 0 ADA (111ops) (addr1q8srgqm3halzpxll0q5fxvawp59gmewkgpxcyf3435k22xn87wxdp5wvfrzupdvpsha3w66pamgjm9dffqdkzy0a02yq33767t on 1852'/1815'/4'/0/55) cardano#4 js:2:cardano:a1be5fea2977156fff143da65a47622f1d02e245b41377b91adff868c8f30c1c404891e1367eefac31c6f1f2ec4c349a5411e720c5506c32d07d945631131241:cardano
Cardano 6: 30.2634 ADA (92ops) (addr1q9dxrnj34cclclnvphkh379kzfe47lprev73d3rehfkzd6dszad2pxt2prragz995z3z0msrdfuycwm8nt8d7x3s0ffsc84gnj on 1852'/1815'/5'/0/58) cardano#5 js:2:cardano:2cfb2158a01a610c7ee92e819c7c6fb06c946eb9aaaa85c04d3f0d1d54edc2b9c32bbdbab432c93491cf0d42e01bb57a716039b4219dbfd8fbbeeaebae2561ec:cardano
Cardano 7: 0 ADA (0ops) (addr1qy39gylyelv2zly254mx8hcpgd7v4r8695u70l5q24pnu6vnhrutx2jy94jetmv2j5klhj6qpfwz3fukp200c69shnpsnrhq6x on 1852'/1815'/6'/0/0) cardano#6 js:2:cardano:96c1570c627d1acf38c6e9003e7e2a681e5782e10c838aef30324a081399df5e3ba9448bb614970fb21f7e464e71985e63929f84913b3ee9786405d56ee4e95b:cardano
necessary accounts resynced in 0.23ms
▬ CardanoADA 6.1.2 on nanoSP 1.1.0
→ FROM Cardano 2: 8.37425 ADA (118ops) (addr1qxsp3zcjczux9xznpgsygev5aeepgn84p4hmhzvuy09qzjh4lymu3xuf47htdrl7f5s4ptpckhaf6u5lr0vk23jlsjhqlauxpu on 1852'/1815'/1'/0/48) cardano#1 js:2:cardano:761016d3b64d3ddff1f391b88a1d7ee2045fcdee5d5f635241a0f5211cd354b0f1c45abfe7e962c147de304d8dbdd18cb6bef4a52a133ef64f00793ebbc26b79:cardano (! sum of ops 8.365991 ADA) 8.374251 ADA delegated to Cardanoscan Pool 1 (CSN1) 7df262feae9201d1b2e32d4c825ca91b29fbafb2b8e556f6efb7f549. Total 0 ADA rewards available.

max spendable ~8.20897
★ using mutation 'move ~50%'
→ TO Cardano 4: 8.37253 ADA (114ops) (addr1q8nc44vu2zz3p3l4qcleuad0lwqjexshldgaxnqcna5cku8ey3teslxzrx7fdxn36e80yzync6j4e0zx33gq0tzlaskqts3w6d on 1852'/1815'/3'/0/53) cardano#3 js:2:cardano:58a62f7388caa92bd71bb09aeddfe04b4088eda52b855d358c4321d5d4db62059d119f9740b2f030317bf13bb0ae8ba651eb6e5e19b6437941c197172586f7b0:cardano
✔️ transaction 
  SEND  4.187126 ADA
TO addr1q8nc44vu2zz3p3l4qcleuad0lwqjexshldgaxnqcna5cku8ey3teslxzrx7fdxn36e80yzync6j4e0zx33gq0tzlaskqts3w6d
STATUS (37ms)
  amount: 4.187126 ADA
  estimated fees: 0.170913 ADA
  total spent: 4.358039 ADA
errors: 
errors: 
✔️ has been signed! (8.9s) 
✔️ broadcasted! (328ms) optimistic operation: 
  -4.358039 ADA      OUT        ee7f88dbd1718cffd31125402787748c5e7ca0ccb514d03ff7854a3532857f12 2023-12-07T14:43
✔️ operation confirmed (80.7s): 
  -4.358039 ADA      OUT        ee7f88dbd1718cffd31125402787748c5e7ca0ccb514d03ff7854a3532857f12 2023-12-07T14:43
✔️ Cardano 2: 4.01621 ADA (119ops) (addr1qxsp3zcjczux9xznpgsygev5aeepgn84p4hmhzvuy09qzjh4lymu3xuf47htdrl7f5s4ptpckhaf6u5lr0vk23jlsjhqlauxpu on 1852'/1815'/1'/0/48) cardano#1 js:2:cardano:761016d3b64d3ddff1f391b88a1d7ee2045fcdee5d5f635241a0f5211cd354b0f1c45abfe7e962c147de304d8dbdd18cb6bef4a52a133ef64f00793ebbc26b79:cardano (! sum of ops 4.007952 ADA) 4.016212 ADA delegated to Cardanoscan Pool 1 (CSN1) 7df262feae9201d1b2e32d4c825ca91b29fbafb2b8e556f6efb7f549. Total 0 ADA rewards available.
(in 80.7s)
✔️ destination operation 
  +4.187126 ADA      IN         ee7f88dbd1718cffd31125402787748c5e7ca0ccb514d03ff7854a3532857f12 2023-12-07T14:43
(in 10.6s)

necessary accounts resynced in 4.74ms
▬ CardanoADA 6.1.2 on nanoSP 1.1.0
→ FROM Cardano 3: 9.82552 ADA (87ops) (addr1qye6cr0spgutyt4n0e276mtqaly0jxtjh9967zgtgumdqhhlw0zs7dasu3m0qqen37eyyssdkjy9urxr0tfm3ej2fz8sr3w2e3 on 1852'/1815'/2'/0/33) cardano#2 js:2:cardano:5600aa12b09a4b74baaf4a06a5715e7d2181e885713797fce2d93385224683632b0318a9edf19fea3d3c7e90ae6b8d2694d65be3cf26fbce7104f37512c2f8f3:cardano (! sum of ops 7.825521 ADA) 9.825521 ADA delegated to Cardanoscan Pool 2 (CSN2) da50099e7aa1d926e1888990b1c404caf554dd6f68a1cb0322999d1d. Total 0 ADA rewards available.

max spendable ~9.66024
★ using mutation 'send max'
→ TO Cardano 1 cross: 1.34479 ADA (127ops) (addr1q9a2ansqkmlt6r0pfamwce9hy0rp44xjre2dz63ae38ccfrwsr839ept3mchu8mqmf2mfesqewdeduhvpm4eefu4lk6qlzfmna on 1852'/1815'/0'/0/55) cardano#0 js:2:cardano:bb8ec3355bc015075ecb304f0bfc8b0dec431688938b61b2ca317c71989590bbe523dea846ca8dcd97132a58a73ee344487948951cb09b8c4f20d64dbd4c6405:cardano
✔️ transaction 
  SEND MAX
TO addr1q9a2ansqkmlt6r0pfamwce9hy0rp44xjre2dz63ae38ccfrwsr839ept3mchu8mqmf2mfesqewdeduhvpm4eefu4lk6qlzfmna
STATUS (31ms)
  amount: 9.66024 ADA
  estimated fees: 0.165281 ADA
  total spent: 9.825521 ADA
errors: 
errors: 
✔️ has been signed! (5.3s) 
✔️ broadcasted! (333ms) optimistic operation: 
  -9.825521 ADA      OUT        aca43a3ec469e837a3e635a31eb8cd9181c42aa8d18b00f7419a77fb4d3a55a2 2023-12-07T14:44
✔️ operation confirmed (40.6s): 
  -9.825521 ADA      OUT        aca43a3ec469e837a3e635a31eb8cd9181c42aa8d18b00f7419a77fb4d3a55a2 2023-12-07T14:45
✔️ Cardano 3: 0 ADA (88ops) (addr1qye6cr0spgutyt4n0e276mtqaly0jxtjh9967zgtgumdqhhlw0zs7dasu3m0qqen37eyyssdkjy9urxr0tfm3ej2fz8sr3w2e3 on 1852'/1815'/2'/0/33) cardano#2 js:2:cardano:5600aa12b09a4b74baaf4a06a5715e7d2181e885713797fce2d93385224683632b0318a9edf19fea3d3c7e90ae6b8d2694d65be3cf26fbce7104f37512c2f8f3:cardano (! sum of ops -2 ADA) 0 ADA delegated to Cardanoscan Pool 2 (CSN2) da50099e7aa1d926e1888990b1c404caf554dd6f68a1cb0322999d1d. Total 0 ADA rewards available.
(in 40.6s)
✔️ destination operation 
  +9.66024 ADA       IN         aca43a3ec469e837a3e635a31eb8cd9181c42aa8d18b00f7419a77fb4d3a55a2 2023-12-07T14:45
(in 10.6s)

necessary accounts resynced in 1.72ms
▬ CardanoADA 6.1.2 on nanoSP 1.1.0
→ FROM Cardano 4: 12.5596 ADA (115ops) (addr1q8ert085ez637r4mrzsewe4n35yzsrjh9zmfrtnag03ks30ey3teslxzrx7fdxn36e80yzync6j4e0zx33gq0tzlaskq8a437j on 1852'/1815'/3'/0/54) cardano#3 js:2:cardano:58a62f7388caa92bd71bb09aeddfe04b4088eda52b855d358c4321d5d4db62059d119f9740b2f030317bf13bb0ae8ba651eb6e5e19b6437941c197172586f7b0:cardano (! sum of ops 8.54677 ADA) 12.559661 ADA delegated to Cardanoscan Pool 1 (CSN1) 7df262feae9201d1b2e32d4c825ca91b29fbafb2b8e556f6efb7f549. Total 0 ADA rewards available.

max spendable ~12.3883
★ using mutation 'undelegate'
✔️ transaction 
  UNDELEGATE 
STATUS (30ms)
  amount: 0 ADA
  estimated fees: 0.171309 ADA
  total spent: 0.171309 ADA
errors: 
errors: 
✔️ has been signed! (13.3s) 
✔️ broadcasted! (298ms) optimistic operation: 
  -0.171309 ADA      UNDELEGATE 87b0533541c9d18d179bd608b7562cc572a099c03f93d4d339ace09e951f038b 2023-12-07T14:45
✔️ operation confirmed (50.6s): 
  -0.171309 ADA      UNDELEGATE 87b0533541c9d18d179bd608b7562cc572a099c03f93d4d339ace09e951f038b 2023-12-07T14:46
✔️ Cardano 4: 14.3883 ADA (116ops) (addr1q8ert085ez637r4mrzsewe4n35yzsrjh9zmfrtnag03ks30ey3teslxzrx7fdxn36e80yzync6j4e0zx33gq0tzlaskq8a437j on 1852'/1815'/3'/0/54) cardano#3 js:2:cardano:58a62f7388caa92bd71bb09aeddfe04b4088eda52b855d358c4321d5d4db62059d119f9740b2f030317bf13bb0ae8ba651eb6e5e19b6437941c197172586f7b0:cardano (! sum of ops 8.375461 ADA) Total 0 ADA rewards available.
(in 50.6s)

necessary accounts resynced in 0.27ms
▬ CardanoADA 6.1.2 on nanoSP 1.1.0
→ FROM Cardano 6: 30.2634 ADA (92ops) (addr1q9dxrnj34cclclnvphkh379kzfe47lprev73d3rehfkzd6dszad2pxt2prragz995z3z0msrdfuycwm8nt8d7x3s0ffsc84gnj on 1852'/1815'/5'/0/58) cardano#5 js:2:cardano:2cfb2158a01a610c7ee92e819c7c6fb06c946eb9aaaa85c04d3f0d1d54edc2b9c32bbdbab432c93491cf0d42e01bb57a716039b4219dbfd8fbbeeaebae2561ec:cardano (! sum of ops 23.935091 ADA) Total 0 ADA rewards available.
  TokenAccount Hosky Inu: 3 HI (1 ops)
max spendable ~28.7187
★ using mutation 'move ~10% token'
→ TO Cardano 4: 14.3883 ADA (116ops) (addr1q8ert085ez637r4mrzsewe4n35yzsrjh9zmfrtnag03ks30ey3teslxzrx7fdxn36e80yzync6j4e0zx33gq0tzlaskq8a437j on 1852'/1815'/3'/0/54) cardano#3 js:2:cardano:58a62f7388caa92bd71bb09aeddfe04b4088eda52b855d358c4321d5d4db62059d119f9740b2f030317bf13bb0ae8ba651eb6e5e19b6437941c197172586f7b0:cardano
✔️ transaction 
  SEND  1 HI
TO addr1q8ert085ez637r4mrzsewe4n35yzsrjh9zmfrtnag03ks30ey3teslxzrx7fdxn36e80yzync6j4e0zx33gq0tzlaskq8a437j
STATUS (37ms)
  amount: 1 HI
  estimated fees: 0.177425 ADA
  total spent: 1 HI
errors: 
errors: 
✔️ has been signed! (12.6s) 
✔️ broadcasted! (285ms) optimistic operation: 
  -1.522223 ADA      OUT        9f80e4963d386844d1e000b5eda1c21e347b2a024bb6a275d95ff57284a4604d 2023-12-07T14:46
    -1 HI            OUT        
✔️ operation confirmed (90.7s): 
  -1.522223 ADA      OUT        9f80e4963d386844d1e000b5eda1c21e347b2a024bb6a275d95ff57284a4604d 2023-12-07T14:47
    -1 HI            OUT        
✔️ Cardano 6: 28.7412 ADA (93ops) (addr1q9dxrnj34cclclnvphkh379kzfe47lprev73d3rehfkzd6dszad2pxt2prragz995z3z0msrdfuycwm8nt8d7x3s0ffsc84gnj on 1852'/1815'/5'/0/58) cardano#5 js:2:cardano:2cfb2158a01a610c7ee92e819c7c6fb06c946eb9aaaa85c04d3f0d1d54edc2b9c32bbdbab432c93491cf0d42e01bb57a716039b4219dbfd8fbbeeaebae2561ec:cardano (! sum of ops 22.412868 ADA) Total 0 ADA rewards available.
  TokenAccount Hosky Inu: 2 HI (2 ops)(in 90.7s)


Details of the 2 uncovered mutations

Spec cardano (2)

  • delegate to pool: balance is too low (3)
  • redelegate to pool: balance is too low (3)
Portfolio ($25.90) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
cardano (7) 656 ops (+7), 55.4909 ADA ($25.90) ⚠️ 45 addr1qxef2p20nzefrlg2n3a0valzxg08hhdp0h2klye4ha4qx9twsr839ept3mchu8mqmf2mfesqewdeduhvpm4eefu4lk6qufq6ny
Cardano 1 cross: 11.005 ADA (128ops) (addr1qxef2p20nzefrlg2n3a0valzxg08hhdp0h2klye4ha4qx9twsr839ept3mchu8mqmf2mfesqewdeduhvpm4eefu4lk6qufq6ny on 1852'/1815'/0'/0/56) cardano#0 js:2:cardano:bb8ec3355bc015075ecb304f0bfc8b0dec431688938b61b2ca317c71989590bbe523dea846ca8dcd97132a58a73ee344487948951cb09b8c4f20d64dbd4c6405:cardano
Cardano 2: 4.01621 ADA (119ops) (addr1qxsp3zcjczux9xznpgsygev5aeepgn84p4hmhzvuy09qzjh4lymu3xuf47htdrl7f5s4ptpckhaf6u5lr0vk23jlsjhqlauxpu on 1852'/1815'/1'/0/48) cardano#1 js:2:cardano:761016d3b64d3ddff1f391b88a1d7ee2045fcdee5d5f635241a0f5211cd354b0f1c45abfe7e962c147de304d8dbdd18cb6bef4a52a133ef64f00793ebbc26b79:cardano
Cardano 3: 0 ADA (88ops) (addr1qye6cr0spgutyt4n0e276mtqaly0jxtjh9967zgtgumdqhhlw0zs7dasu3m0qqen37eyyssdkjy9urxr0tfm3ej2fz8sr3w2e3 on 1852'/1815'/2'/0/33) cardano#2 js:2:cardano:5600aa12b09a4b74baaf4a06a5715e7d2181e885713797fce2d93385224683632b0318a9edf19fea3d3c7e90ae6b8d2694d65be3cf26fbce7104f37512c2f8f3:cardano
Cardano 4: 15.7331 ADA (117ops) (addr1q936ux3krcqenss26ktnxsd59gjtsquv376gnlf27d5aka8ey3teslxzrx7fdxn36e80yzync6j4e0zx33gq0tzlaskqsv96qw on 1852'/1815'/3'/0/55) cardano#3 js:2:cardano:58a62f7388caa92bd71bb09aeddfe04b4088eda52b855d358c4321d5d4db62059d119f9740b2f030317bf13bb0ae8ba651eb6e5e19b6437941c197172586f7b0:cardano
Cardano 5: 0 ADA (111ops) (addr1q8srgqm3halzpxll0q5fxvawp59gmewkgpxcyf3435k22xn87wxdp5wvfrzupdvpsha3w66pamgjm9dffqdkzy0a02yq33767t on 1852'/1815'/4'/0/55) cardano#4 js:2:cardano:a1be5fea2977156fff143da65a47622f1d02e245b41377b91adff868c8f30c1c404891e1367eefac31c6f1f2ec4c349a5411e720c5506c32d07d945631131241:cardano
Cardano 6: 28.7412 ADA (93ops) (addr1q9dxrnj34cclclnvphkh379kzfe47lprev73d3rehfkzd6dszad2pxt2prragz995z3z0msrdfuycwm8nt8d7x3s0ffsc84gnj on 1852'/1815'/5'/0/58) cardano#5 js:2:cardano:2cfb2158a01a610c7ee92e819c7c6fb06c946eb9aaaa85c04d3f0d1d54edc2b9c32bbdbab432c93491cf0d42e01bb57a716039b4219dbfd8fbbeeaebae2561ec:cardano
Cardano 7: 0 ADA (0ops) (addr1qy39gylyelv2zly254mx8hcpgd7v4r8695u70l5q24pnu6vnhrutx2jy94jetmv2j5klhj6qpfwz3fukp200c69shnpsnrhq6x on 1852'/1815'/6'/0/0) cardano#6 js:2:cardano:96c1570c627d1acf38c6e9003e7e2a681e5782e10c838aef30324a081399df5e3ba9448bb614970fb21f7e464e71985e63929f84913b3ee9786405d56ee4e95b:cardano
Performance ⏲ 6min 27s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 1.41ms 54.5s 821ms 135ms 40.1s 1245ms 4min 23s 21.2s
cardano (6) 1.41ms 54.5s 821ms 135ms 40.1s 1245ms 4min 23s 21.2s

What is the bot and how does it work? Everything is documented here!

Please sign in to comment.