2021-06-16 02:31:31 +02:00
# Tornado Pool [![Build Status](https://github.com/tornadocash/tornado-pool/workflows/build/badge.svg)](https://github.com/tornadocash/tornado-pool/actions)
## Usage
```shell
yarn
2021-08-19 18:27:19 +02:00
yarn download
2021-06-16 02:31:31 +02:00
yarn build
yarn test
```
2021-08-13 20:28:44 +02:00
TODO
2021-08-16 18:53:18 +02:00
2021-08-13 20:28:44 +02:00
1. deposit from mainnet to the pool on optimism in one tx
2021-08-19 18:27:19 +02:00
## Useful
How we do transaction inside pool of A amount.
2021-08-19 18:50:30 +02:00
2021-08-19 18:27:19 +02:00
1. sort inputs by amount
2. try to take 1 or 2 smallest inputs to satisfy A amount. Get 16 inputs if it's not possible using the same way
3. Also you can always use transaction to merge your inputs with change (especially in 16 inputs case)