What this is
The settlement contract as it runs on Robinhood Chain at
0x96Ce146534837BC995a8e65F45A34fEFFaF9F107. Source, tests, deploy script and a
worked example of renting from code.
What it does
- Takes a price we signed, pulls your stock, sells exactly as much as the rental
costs and returns the rest inside the same transaction - Settles in USDG directly if that is what you hold
- Never holds your equity between orders
- Lets the owner sweep settled dollars but not money held against orders that
are not provisioned yet. There is a test for that specifically.
Numbers
18 tests, all passing on a clean clone. One runs against the live chain.
What is not here
The website, the API and the provisioning side are not in this repository.
Refunds are in dollars rather than in the stock that was paid, because the
equity leg is already sold at payment time.