coblox / bobtimus

an autobot that automatically handles swaps as Bob
Apache License 2.0
1 stars 1 forks source link

Market making rate & link creation #45

Closed D4nte closed 5 years ago

D4nte commented 5 years ago

To avoid issues with funds, Bobtimus needs to calculate:

When rates/amounts are updated, a new link should be created and put it in a html file.

The published amount is min(ether_balance/i, bitcoin_balance/i). Where i is configurable or calculated on the same curve than the rates (up to implementer).

The acceptable rate is the published minus some margin to allow old links to still be valid for some times (but not forever). Similarly for the acceptable amount.

thomaseizinger commented 5 years ago

Done in #56.

Remaining glue to be written as part of https://github.com/coblox/bobtimus/issues/46.