Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(client): add maximum capacity checks to client #850

Merged
merged 1 commit into from
Mar 27, 2019

Conversation

ghost
Copy link

@ghost ghost commented Mar 21, 2019

This PR builds upon #844.

In this PR we're adding a maximumOutboundCapacity property to every client and update it every 60 seconds by querying the channelBalance. This is required to ultimately add sanity checks before Orderbook.placeOrder.

@ghost ghost requested a review from sangaman March 21, 2019 22:05
@ghost ghost self-assigned this Mar 21, 2019
@ghost ghost added the in progress label Mar 21, 2019
Copy link
Collaborator

@sangaman sangaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, made some comments below. The next step would then be to check the available outbound balance before adding orders to the order book, right?

lib/BaseClient.ts Outdated Show resolved Hide resolved
lib/BaseClient.ts Outdated Show resolved Hide resolved
lib/BaseClient.ts Outdated Show resolved Hide resolved
lib/BaseClient.ts Outdated Show resolved Hide resolved
@ghost ghost force-pushed the feat/maximum-capacity-checks-client branch 2 times, most recently from 4de636b to db0d6cd Compare March 24, 2019 18:34
@ghost
Copy link
Author

ghost commented Mar 24, 2019

Rebased, squashed the commits and applied the feedback.

@ghost ghost requested a review from sangaman March 24, 2019 18:38
@ghost ghost force-pushed the feat/maximum-capacity-checks-client branch from db0d6cd to 0c698a1 Compare March 27, 2019 08:31
@ghost
Copy link
Author

ghost commented Mar 27, 2019

Rebased again - @sangaman

@sangaman sangaman merged commit f6279cd into master Mar 27, 2019
@ghost ghost removed the in progress label Mar 27, 2019
@sangaman sangaman deleted the feat/maximum-capacity-checks-client branch March 27, 2019 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant