Update missing LoadAmount to DepositAmount

Related to 445f26ec9f
This commit is contained in:
arnaucube
2020-12-09 18:26:54 +01:00
parent d5c753030a
commit 9d0b278d50
6 changed files with 9 additions and 9 deletions

View File

@@ -1768,7 +1768,7 @@ components:
example: true
historicDepositAmountUSD:
type: number
description: Load amount in USD, at the moment the transaction was made.
description: Deposit amount in USD, at the moment the transaction was made.
example: 3.897
nullable: true
ethereumBlockNum:
@@ -2974,7 +2974,7 @@ components:
example: 1
limitDepositAmount:
type: integer
description: Maximum load amount (L1 to L2) allowed.
description: Maximum deposit amount (L1 to L2) allowed.
example: 321
limitL2TransferAmount:
type: integer
@@ -3116,4 +3116,4 @@ components:
allOf:
- $ref: '#/components/schemas/Error'
- example:
message: Database error.
message: Database error.

View File

@@ -166,9 +166,9 @@ func genTestTxs(
}
laf := new(big.Float).SetInt(l1.DepositAmount)
depositAmountFloat, _ := laf.Float64()
loadUSD := *token.USD * depositAmountFloat / math.Pow(10, float64(token.Decimals))
depositUSD := *token.USD * depositAmountFloat / math.Pow(10, float64(token.Decimals))
if depositAmountFloat != 0 {
tx.L1Info.HistoricDepositAmountUSD = &loadUSD
tx.L1Info.HistoricDepositAmountUSD = &depositUSD
}
}
txs = append(txs, tx)