Skip to content

Commit

Permalink
Added view to get single swap
Browse files Browse the repository at this point in the history
  • Loading branch information
glottologist committed Nov 20, 2023
1 parent dab0731 commit 9965f1c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions batcher/batcher.mligo
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ let change_deposit_time_window
no_op storage

[@inline]
let change_liquidity_injection_limit_in_seconds
/getlet change_liquidity_injection_limit_in_seconds
(new_time_limit: nat)
(storage: storage) : result =
let () = is_known_sender storage.administrator sender_not_administrator in
Expand Down Expand Up @@ -1223,8 +1223,14 @@ let does_batch_need_liquidity
if volumes.buy_total_volume > 0n && volumes.sell_total_volume > 0n then (None: batch option) else
Some batch
| _ -> (None: batch option)


[@inline]
let get_valid_swap (pair,storage:string * storage): valid_swap_reduced = get_valid_swap_reduced pair storage





[@view]
let get_batches_needing_liquidity ((),storage: unit * storage) : batch list=
Expand Down

0 comments on commit 9965f1c

Please sign in to comment.