@@ -864,7 +864,7 @@ export default class AdaApi {
864864 address,
865865 amount : {
866866 quantity : amount ,
867- unit : WalletUnits . LOVELACE ,
867+ unit : WalletUnits . LOVELACE as const ,
868868 } ,
869869 assets,
870870 } ,
@@ -940,7 +940,7 @@ export default class AdaApi {
940940 address,
941941 amount : {
942942 quantity : amount ,
943- unit : WalletUnits . LOVELACE ,
943+ unit : WalletUnits . LOVELACE as const ,
944944 } ,
945945 } ,
946946 ] ,
@@ -1013,7 +1013,7 @@ export default class AdaApi {
10131013 address,
10141014 amount : {
10151015 quantity : amount ,
1016- unit : WalletUnits . LOVELACE ,
1016+ unit : WalletUnits . LOVELACE as const ,
10171017 } ,
10181018 assets,
10191019 } ,
@@ -1142,7 +1142,7 @@ export default class AdaApi {
11421142 address : payments . address ,
11431143 amount : {
11441144 quantity : payments . amount ,
1145- unit : WalletUnits . LOVELACE ,
1145+ unit : WalletUnits . LOVELACE as const ,
11461146 } ,
11471147 assets : payments . assets ,
11481148 } ,
@@ -1222,13 +1222,14 @@ export default class AdaApi {
12221222 derivationPath : withdrawal . derivation_path ,
12231223 amount : withdrawal . amount ,
12241224 } ) ) ;
1225- const depositsArray = map ( response . deposits , ( deposit ) =>
1225+ const depositsArray = map ( response . deposits_taken , ( deposit ) =>
12261226 deposit . quantity . toString ( )
12271227 ) ;
12281228 const deposits = depositsArray . length
12291229 ? BigNumber . sum . apply ( null , depositsArray )
12301230 : new BigNumber ( 0 ) ;
1231- // @TODO - Use api response when api is ready
1231+ // @TODO - Use API response
1232+ // https://bump.sh/doc/cardano-wallet-diff/changes/c11ebb1b-39c1-40b6-96b9-610705c62cb8#operation-selectcoins-200-deposits_returned
12321233 const depositsReclaimed =
12331234 delegation && delegation . delegationAction === DELEGATION_ACTIONS . QUIT
12341235 ? new BigNumber ( DELEGATION_DEPOSIT ) . multipliedBy ( LOVELACES_PER_ADA )
@@ -2303,7 +2304,7 @@ export default class AdaApi {
23032304 address,
23042305 amount : {
23052306 quantity : amount ,
2306- unit : WalletUnits . LOVELACE ,
2307+ unit : WalletUnits . LOVELACE as const ,
23072308 } ,
23082309 } ,
23092310 ] ,
@@ -2830,7 +2831,7 @@ export default class AdaApi {
28302831 address,
28312832 amount : {
28322833 quantity : amount ,
2833- unit : WalletUnits . LOVELACE ,
2834+ unit : WalletUnits . LOVELACE as const ,
28342835 } ,
28352836 } ,
28362837 ] ,
@@ -3109,7 +3110,7 @@ const _createTransactionFromServerData = action(
31093110 id,
31103111 amount,
31113112 fee,
3112- deposit,
3113+ deposit_taken : deposit ,
31133114 inserted_at : insertedAt ,
31143115 pending_since : pendingSince ,
31153116 depth,
0 commit comments