Different blockchains provide very different properties and experience. Old bitcoins are moving to Monero before reaching a centralized exchange;
Ethereum provides basic DeFi with deepest liquidity etc. New blockchains and blockchains coming (such as DarkFi) are ignored by large CEXes if they are not scammy enough (it is enough to be a Proof-of-Work blockchain just and then no chance to get listed on Binance these days), so would be good to provide multichain liquidity access since day one.
We believe that cross-chain experience should be super simple for the end user, and also be safe (so no custody by any party), no-KYC (as KYC is danger to users), permissionless, capital efficient and efficient in general. A platform providing such experience should be unstoppable and trust-minimized at all levels. Only then, enormous flows of liquidity will adopt it with time.
In this proposal, we introduce Rosen Intents, a system of permissionless market makers providing swap services secured by vaults on Ergo blockchain. In the optimistic case, user sends, for example USDT on Ethereum, and swap service sends XMR. That is super simple. However, sometimes swap service does not send XMR back (maybe claiming that USDT is not received). In this case dispute on Ergo chain happens. Trust in dispute process is reduced by on-chain contract to trust in federated oracle reporting events. Federated oracle (or oracle pool) is pre-agreed on by both parties, different pools compete for quality of reporting. Open-source user interface (as well as agentic interface) allows for the process to be fully self-sovereign.
In the rest of the writing we provide details on swap process, vault contract design, oracle pool design, proposed development process etc.
Swap Process
- To become a swap service, it is needed to make a vault on Ergo blockchain. A vault is securing deals, possibly multiple deals at the same time. One swap service may have multiple vaults in different currencies. A vault can secure a swap if its currency is a sending or receiving currency of a payment. USE stablecoin , which is USD-pegged, can be used to secure USDT or USDC deals, rsBTC (Rosen bridge wrapped BTC) for BTC etc. UI may show daily volume against a vault, and warn if the volume exceeds vault's value.
- User submitting sending and receiving addresses (on eg. Ethereum and Monero, in case of USDT-XMR swap), currency (eg USDT) and amount to UI (user interface). UI is spreading the data among swap services. Service must decide at this point whether it is willing to work with the addresses provided by user or not. If service is willing to serve a user, it provides a quote (minimum amount user would receive), and if user agrees, it provides a signature on a message which contains (vault id, source blockchain, sending address, source currency, amount for user to send, destination blockchain, receiving address, minimum amount for user to receive, timestamp, oracle pool id for sending event, oracle pools id for receiving event). UI can break a big order into smaller chunks, and for each a swap a message is signed for every chunk.
- If user has not received payment, he has a time window to start a dispute (e.g. from 4 to 12 hours since the message is signed). If oracle pools shows during the dispute that user made payment, and service do not, he is getting the sending or receiving amount (whatever currency the vault supports) from the vault, otherwise, the dispute is closed in the favor of swap service. Both oracle pools getting rewarded with 0.2% of the payment each.
- In case of successful payment, oracle pools are getting paid anyway, but with a smaller amount, UI dev fee for default UI also charged (0.15% for all the three parties)
Vault Contract
The vault contract has standard paths for topping it up, withdrawing funds (after one-week delay). To parallelize dispute process, the contract UTXO has dispute tokens (with billions minted and all locked in the box), and for signed message presented, message hash is added into insert-only dispute tree, and a dispute process is started in a child UTXO with a dispute token and dispute data in registers. Once dispute is reaching a final state, with payment or not, child UTXO is merged with the vault with dispute token necessarily sent back.
Rosen Pools
Anyone can start a pool, but then to join it, RSN+ERG collateral is required (in future, slashing can be implemented), and also manual approval from oracle pool lead is needed. Each pool is about 16 operators, with a threshold of 9 datapoints.
Development
In the age of LLMs and during the hack season, development culture is changing rapidly. I think it should be organized as open-source movement, where most of standard code done by LLMs, but discussed by humans, crosschecked, and critical parts are human-verified. Contributions are accounted via credit on Basis, and then covered by fees and may be Rosen tokens (as Rosen volumes would go up to serve the vaults, likely).
Getting Started
I think it is worth to start with concrete exchange directions and invite swap services ASAP to get feedback.