@@ -863,7 +863,7 @@ export default class AdaApi {
863863 address,
864864 amount : {
865865 quantity : amount ,
866- unit : WalletUnits . LOVELACE ,
866+ unit : WalletUnits . LOVELACE as const ,
867867 } ,
868868 assets,
869869 } ,
@@ -941,7 +941,7 @@ export default class AdaApi {
941941 address,
942942 amount : {
943943 quantity : amount ,
944- unit : WalletUnits . LOVELACE ,
944+ unit : WalletUnits . LOVELACE as const ,
945945 } ,
946946 } ,
947947 ] ,
@@ -1014,7 +1014,7 @@ export default class AdaApi {
10141014 address,
10151015 amount : {
10161016 quantity : amount ,
1017- unit : WalletUnits . LOVELACE ,
1017+ unit : WalletUnits . LOVELACE as const ,
10181018 } ,
10191019 assets,
10201020 } ,
@@ -1143,7 +1143,7 @@ export default class AdaApi {
11431143 address : payments . address ,
11441144 amount : {
11451145 quantity : payments . amount ,
1146- unit : WalletUnits . LOVELACE ,
1146+ unit : WalletUnits . LOVELACE as const ,
11471147 } ,
11481148 assets : payments . assets ,
11491149 } ,
@@ -1223,13 +1223,14 @@ export default class AdaApi {
12231223 derivationPath : withdrawal . derivation_path ,
12241224 amount : withdrawal . amount ,
12251225 } ) ) ;
1226- const depositsArray = map ( response . deposits , ( deposit ) =>
1226+ const depositsArray = map ( response . deposits_taken , ( deposit ) =>
12271227 deposit . quantity . toString ( )
12281228 ) ;
12291229 const deposits = depositsArray . length
12301230 ? BigNumber . sum . apply ( null , depositsArray )
12311231 : new BigNumber ( 0 ) ;
1232- // @TODO - Use api response when api is ready
1232+ // @TODO - Use API response
1233+ // https://bump.sh/doc/cardano-wallet-diff/changes/c11ebb1b-39c1-40b6-96b9-610705c62cb8#operation-selectcoins-200-deposits_returned
12331234 const depositsReclaimed =
12341235 delegation && delegation . delegationAction === DELEGATION_ACTIONS . QUIT
12351236 ? new BigNumber ( DELEGATION_DEPOSIT ) . multipliedBy ( LOVELACES_PER_ADA )
@@ -2311,7 +2312,7 @@ export default class AdaApi {
23112312 address,
23122313 amount : {
23132314 quantity : amount ,
2314- unit : WalletUnits . LOVELACE ,
2315+ unit : WalletUnits . LOVELACE as const ,
23152316 } ,
23162317 } ,
23172318 ] ,
@@ -2841,7 +2842,7 @@ export default class AdaApi {
28412842 address,
28422843 amount : {
28432844 quantity : amount ,
2844- unit : WalletUnits . LOVELACE ,
2845+ unit : WalletUnits . LOVELACE as const ,
28452846 } ,
28462847 } ,
28472848 ] ,
@@ -3120,7 +3121,7 @@ const _createTransactionFromServerData = action(
31203121 id,
31213122 amount,
31223123 fee,
3123- deposit,
3124+ deposit_taken : deposit ,
31243125 inserted_at : insertedAt ,
31253126 pending_since : pendingSince ,
31263127 depth,
0 commit comments