Swapbox overview
Hardware
Electronics
Type | Component |
---|---|
Computer board | Raspberry Pi 4 model B 8GB |
Cash-in device | Innovative technology NV10 |
Cash-out device | ICT group NDE-1000 |
Screen | 10.1" IPS Industrial Touchscreen Display for Raspberry Pi |
Camera (to scan QR codes) | 16MP IMX519 Autofocus Camera Module |
Power supply 1 | 12V DC power supply unit |
Power supply 2 | 5V DC power supply unit |
Enclosure & mounting
Enclosure parts are made of thick extruded aluminum panels (1.5cm) and strong steel plates (2mm, 3mm for the Top panel). The parts are very easy to manufacture by any metal worker.
Mounting parts are 3D printed, making them easy to replace and adapt for other electronics.
Software
Swapbox interface
The Swapbox interface is the software run on the Raspberry Pi on the machine, allowing users to interact with the machine. It is also used by the operator to:
- Change settings
- Connect to deployed smart contract
- Set an internet connection
- Set / reset notes count (when changing cash cassette)
- Max amounts
- Check status
- Internet
- Paper (Printer opt-in only)
- Note
- Diagnostics
- Manual note payout
- Printer linefeed (Printer opt-in only) Kivy for performance & simplicity
Note
Swapbox does not provide a KYC software module. If the operator wishes to add KYC to his machines, he must need to add him manually.
Admin dApp
The Admin dApp is the backend software of Swapbox. It allows the operator to interact with the smart contract described below. To ensure maximum censorship resistance, the app will be hosted on Swarm, a decentralized hosting service.
Smart contracts
Swapbox has 3 distinct smart contracts:
- SwapboxUniswapV3
The contract swapping stablecoins for user desired tokens for buy transaction, and vice versa for sells, on Uniswap. - Swapbox
Main Swapbox contract, used to:- Hold stablecoins and accrued fees
- Call SwapboxUniswapV2 during a transaction
- Add and remove tokens from available tokens
- Update buy and sell fees.
- Pricefeed
- Get the price of the traded asset from the Uniswap pair.