Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
initialize last trade
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Aug 26, 2024
1 parent 71712cb commit 09c42ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tranche/tranche-space-symmetric.rain
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,14 @@ deployments:
#test-last-update-time !Returned by get-test-last-tranche to allow the last update time to be bound for testing.
#test-now !Returned by get-test-last-tranche to allow the current time to be bound for testing.

#tranche-space-key "tranche-space"
#update-time-key "update-time"
#last-io-ratio-key "last-io-ratio"
#last-trade-time "last-trade-time"

/* Initialize new order */

#handle-add-order
:set(hash(order-hash() tranche-space-key) initial-tranche-space),
:set(hash(order-hash() update-time-key) now());
:set(hash(order-hash() last-io-ratio-key) initial-io-ratio),
:set(hash(order-hash() last-trade-time) now());

/* Calculate IO */

Expand Down

0 comments on commit 09c42ea

Please sign in to comment.