Skip to content

Commit

Permalink
fix: inconsistent micro time naming
Browse files Browse the repository at this point in the history
  • Loading branch information
vatanasov committed Aug 16, 2024
1 parent 69c51ab commit 6099c91
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/swagger_v3/dex.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ schemas:
to_decimals:
type: integer
example: 18
microtime:
micro_time:
type: integer
example: 1629820800000
height:
Expand All @@ -87,7 +87,7 @@ schemas:
- to_amount
- from_decimals
- to_decimals
- microtime
- micro_time
- height
paths:
/dex/swaps:
Expand Down
2 changes: 1 addition & 1 deletion lib/ae_mdw/dex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ defmodule AeMdw.Dex do
tx_hash: Encoding.encode(:tx_hash, Txs.txi_to_hash(state, txi)),
log_idx: log_idx,
amounts: rendered_amounts,
microtime: time,
micro_time: time,
height: height
}
end
Expand Down
10 changes: 9 additions & 1 deletion test/ae_mdw_web/controllers/dex_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,15 @@ defmodule AeMdwWeb.DexControllerTest do
"tx_hash" => tx_hash,
"log_idx" => log_idx,
"amounts" => amounts,
"action" => action
"action" => action,
"micro_time" => _micro_time,
"from_contract" => _from_contract,
"to_contract" => _to_contract,
"from_amount" => _from_amount,
"to_amount" => _to_amount,
"from_decimals" => _from_decimals,
"to_decimals" => _to_decimals,
"height" => _height
},
exp_token1,
exp_token2
Expand Down

0 comments on commit 6099c91

Please sign in to comment.