6656289f21123d6215091555 - MANTIS Whitepaper
6656289f21123d6215091555 - MANTIS Whitepaper
Composable Foundation
May 28, 2024
Abstract
MANTIS (Multi-chain Agnostic Normalised Trust-minimised Intent Settlement)
is the first protocol designed to be a vertically integrated intent pipeline, complete
with expression, execution, and settlement. It recognises that cross-domain intent
settlement interfaces closely with cross-domain Maximal Extractable Value (MEV),
an under-explored space. The thesis is that interoperability between blockchain
domains provides a widened solution space which introduces significant value of
choice manifested in the form of cross-domain MEV and better outcomes for the
user.
Previously, the ability to combine verifiable multi-domain execution with cred-
ible commitments was not possible. However, due to the cross-ecosystem Inter-
Blockchain Communication (IBC) Protocol, we now have a transport mechanism
that is robust enough to enable the creation of a protocol like MANTIS.
MANTIS is an intent settlement platform that functions as a multi-domain exe-
cution layer, with the view that choice creates value in a multi-domain world. Our
objective is to understand new forms of cross-domain MEV and create a democra-
tised market for expressing preferences across blockchain domains.
7 Conclusions 14
2
1 Introduction
MANTIS (Multi-chain Agnostic Normalised Trust-minimised Intent Settlement) is a protocol
designed to allow trust-minimised cross-chain user intent settlement. It offers the following
features, addressing limitations of existing systems:
• It provides an intuitive interface of intents where user can specify their desired outcome for
cryptocurrency transactions in simple terms. For example, an intent could be “I want to
trade X for Y”. MANTIS automatically determines the best procedure (e.g. settlement
route) to reach the goal specified by an intent. This includes bridging and interacting
with account abstraction protocols, decentralised finance (DeFi) applications, and gaming
protocols.
• It secures user funds by stakes of participants who handle those funds. This minimises
trust by eliminating any centralised entity which can negatively influence a user’s goals.
• It offers democratised revenue sharing for its participants such as block producers, valida-
tors, searchers and relayers. It creates competition and thus provides incentives for each
participant to take a fair share of the framework’s fees.
3
builders/relayers form commitments with other actors in the ecosystem to ensure block inclusion.
The overall mechanism abstracts away complexity for users interfacing with protocols, searchers
interacting with multiple domains, and block builders obtaining a new source of order-flow.
1.2 Motivation
Pairing user experience with optimised execution has been the missing piece needed to unlock
both capital efficiency and value accrual for participants in the DeFi transaction supply chain.
Alas, multi-chain interactions have continued to be rotational with users moving from one
ecosystem to another or centralising [1] with off-chain trusted actors. The rise in significant
centralisation within the multi-chain pipeline has continued not only in the bridging architectures
themselves, but also in market makers who are filling bridging transactions.
These centralised mechanisms have been the typical methodology to address intents in the
DeFi space. This is counter-intuitive to the crypto-ecosystem that typically strives for on-chain
provability. However, there is a lack of decentralised solutions that rival existing centralised
structures in terms of speed or cost.
This shortcoming is being addressed with the launch of trust-minimised bridging technolo-
gies, such as Picasso Network [4], that allow for generalised message passing as well as the
synchronisation of multiple outlets within the DeFi landscape via the IBC Protocol.
Intents are another novel solution in the DeFi space, and have been hailed as an opportunity
to revolutionise the user experience. For instance, as of April 2024, UniswapX has processed
around $9 billion [8], and CoW Protocol around $2.3 billion in notional volume [7], demonstrating
their significant impact and adoption in the market.
The presently discussed framework recognises that inherently there is more than one solution
for any single user intent, with protocols themselves being “solutions” in addition to off-chain
actors. Availability of different execution pathways and the difference between their results and
the user’s desired outcome is chain-dependent. This chain-dependence (i.e. executing in one
domain vs. another) should be something that is offered to the user as a participant in the
ecosystem.
Upcoming solutions like Anoma or Intent Essential [17, 9] aim to solve some coordination
problems surrounding intents. However, they leave a significant amount of potential value that
could flow to the user by not exploring the problem space by tapping into multiple different chains
and protocols. Furthermore, by not being vertically integrated with execution and settlement
solutions, these protocols are not able to accrue value from payment for orderflow (PFOF).
We see MEV and PFOF as complementary, and eventually, these mechanisms will become the
solution that allows users to transact in a heavily subsidised manner.
By leveraging the growing reach of the IBC Protocol [22], MANTIS coordinates actors
operating in different domains (some on-chain, some off-chain) to realise better execution to
the end user and higher MEV to participants of the system. All of this is accomplished while
maintaining trust minimisation and on-chain proofs.
1.3 Architecture
The MANTIS architecture is designed with three core pillars:
• A submission layer to a Solana Virtual Machine (SVM) rollup with settlement that facil-
itates intent submission and counterparty discovery.
• A cross-domain auction mechanism that facilitates efficient blockspace allocation and ato-
micity.
• A commitments mechanism between chains that allows these conditions in the other parts
of the architecture to be carried out cross-domain.
4
The architecture relies on two core pieces of infrastructure, provided by Picasso [4]:
• IBC, which is the mechanism coordinating work between chains. This work involves com-
municating execution plans as well as forming enforceable commitments between different
blockchains.
• A restaking pool that coordinates the agents that have a combination of stake in various
chains. Commitments formed between these actors draw upon this restaking pool.
5
3 The Inter-Blockchain Communication Protocol
IBC is an end-to-end protocol for reliable and authenticated communication between block-
chains [15]. It enables bi-directional message passing between two blockchains within a relatively
short time window (an average of less than one minute per transmission between Cosmos chains,
for example) [19].
Before two blockchains can communicate along this protocol, an IBC connection must be
established. This is done through a handshake whose purpose is to verify the identity and status
of each chain [16]. Once the connection is established, smart contracts on each chain can begin
exchanging packets.
6
4 MANTIS SDK: A Chain Abstract Execution Frame-
work
The MANTIS SDK defines a communication and packet format which allows smart contracts
on one chain to execute arbitrary instructions on a different chain. It is built on top of IBC,
allowing authenticated and trustless communication between the ledgers.
IBC and its extensions defined in Inter-Chain Standards (ICS) allow for a limited set of cross-
chain operations. Specifically, the base protocol supports message passing between modules on
chains and ICS-20 [14] introduces the additional feature of transferring fungible tokens between
ledgers.
While this covers a lot of the use cases for IBC connections, if an operation does not have
a corresponding ICS or a blockchain does not implement it, a smart contract on one chain is
limited in what actions it can take on the other chain.
The MANTIS SDK addresses that shortcoming by defining a simplified virtual machine
which can execute arbitrary instructions sent through an IBC channel.
For example, suppose that a user holds token X on a blockchain B1 and wants to trade it
for token Y. While it may be possible to make that transaction on B1 , it may not provide the
user with the best execution. Let us say that exchange on block B2 has a much better exchange
rate. With a pure IBC solution, the user would need to transfer the token to B2 , sell it, and
then transfer it back to B1 .
With the MANTIS SDK, it is possible to transfer the token to B2 together with a MANTIS
SDK program which will automatically send it to the exchange and then transfer token Y back
to B1 . Leveraging IBC’s fraud-proof design, the operation is trustless and verifiable such that
the moment the packet is sent from B1 , the user can be sure that they will get their funds back.
This enables processing user actions from a single wallet and powers chain-agnostic execution.
7
Figure 1: MANTIS rollup architecture.
8
Figure 2: MANTIS rollup bridge contract flow.
9
solution on MANTIS roll-up via IBC.
To participate in this mechanism, solvers stake tokens to the staking contract and are
required to make periodic payments to access the intent database. This payment secures the
exclusive right to retrieve intents, ensuring that solvers are financially committed to participating
in the auction process.
Slashing conditions depend on the specifics of the intents. In the case that the intents are
swaps, the slashing conditions are applied under two primary scenarios:
1. If the solution is not posted on the final chain, the slashing penalty depends on the
price movement of the underlying assets associated with the intent. In the absence of
significant price movement, a fixed slashing amount is proposed. However, if substantial
price movement is observed, the slashing penalty mirrors the condition described in the
subsequent scenario.
2. If the solution executed does not match the solution committed in the main auctioneer
contract, the solver is slashed proportionally to the difference between the committed
amount and the actual amount provided to the user. This condition ensures that solvers
are held accountable for any discrepancies in their commitments versus deliveries.
A dedicated network of observers is responsible for monitoring potential misbehaviour among
participants. This network actively sends an IBC proof of misbehaviour to the main auctioneer
contract when misbehaviour is detected. Observers are incentivised with rewards for their vigi-
lance and reporting, which promotes a robust monitoring system and enhances the integrity of
the entire auction process.
As a summary, the intent lifecycle proceeds as follows. First, the user expresses and signs
an intent, sending it to the intent database in the MANTIS rollup. For a period of time, solvers
propose different solution intent commitments to the auction smart contracts. The solutions
are then scored, taking into account the intent preference map. Once the winning solution
is picked, the corresponding solver must execute the solution on the destination chain. If the
solver misbehaves, an IBC proof of misbehaviour is generated and sent to the auctioneer contract,
resulting in the slashing of the misbehaving solver. This overall process is depicted in Figure 3.
Figure 4 further depicts how intent settlement works cross-chain. Intents can be submitted
from IBC-connected chains (such as Solana or Ethereum) or protocols (such as Osmosis, a
10
Cosmos-based decentralised exchange). Regardless of origination location, all intents are sent
through the MANTIS rollup, where solvers are able to create solutions using CoWs or requests
for quotes (RFQs) to market makers to provide liquidity. The resulting transaction routes are
processed over IBC, where they are able to be settled on any IBC-enabled destination chain or
protocol.
11
on an independent auction, hoping to get all transactions executed, though there is a high risk
of execution failure. [11] shows that in economic equilibrium, expressing complex valuations
over a set of goods that have complementaries (i.e. other goods or services that increase their
value when used or consumed together) can have very bad outcomes when these items are sold
through separated simultaneous auctions. To mitigate this, MANTIS will coordinate various
actors to sell blocks from different domains through a combinatorial auction allowing validators
of different chains to efficiently and fairly capture the value from selling their blocks to third
parties such as builders and searchers. This mechanism must be individually rational for all
block proposals to participate. That is, each block proposal should at least obtain the revenue
that would be obtained by not participating in the mechanism.
While these mechanisms have a similar purpose to shared sequencing, shared sequencing
is designed for servicing ledgers within the same ecosystem (such as Ethereum and its Layer
2s). Thus, shared sequencing usually assumes some alignment between the agents that do not
necessarily exist between validators of different Layer 1s, and so this does not address the need
of an incentive-compatible mechanism on the validator set.
MANTIS combinatorial auctions will enable builders and searchers to express bundles through
different domains, ensuring atomicity as well as more revenue to validators that sell their items
separately.
The block A with bid bA in the first domain is accepted if and only
if the block B of the second domain is accepted with bid bB .
As a minimum viable product, first, both block proposals and the relay will have to set up
a (3, 3) threshold decryption scheme. The relay will allow both validators to observe the block
headers, all bids submitted by independent blocks, and the counter-party block proposals pre-
commitment if it is delivered. The pre-commitments contain a signature of a pre-commitment
of a block-header, a share of the secret of the threshold decryption scheme, and an encrypted
signature of the block-header of one of the blocks that constitutes the bundle block. When the
pre-commitment phase period concludes, each validator has the option to send a pre-commitment
of a bundled block. If the relay receives pre-commitments of both block proposals for the same
combinatorial block before the closure of the block proposal pre-commitment period, it decrypts
the signature and releases the blocks. If not, the relay sends a signed message to both parties,
stating that both parties can construct their own separate blocks. More formally, given T0 being
the minimum of slots times of both domains and Te analogously for the end time, the auction
works as follows:
12
MANTIS auction
• Input: Bids of independent blocks and the combinatorial one.
1. Before the beginning of both slots Te , both block proposals and the relay set up
a (3, 3) threshold decryption scheme.
4. If both validators send the pre-commitment, then they immediately receive a signed
message from the relay stating that the combinatorial block is committed. Then the
relay decrypts the signatures and broadcasts the blocks with the take-it-or-leave-it
payments to both block proposals.
5. Otherwise, the relay sends a signed message to both validators rejecting the com-
binatorial block and runs the standard MEV-Boost protocol [12] in this case.
T01 Te1
T02 Te2
Precommitments
This approach, however, poses two main challenges: the risk of double-signing and the
high level of trust placed in the relay. The risk of double-signing is generally mitigated by the
consensus protocols of the domains themselves. Nonetheless, the lucrative MEV opportunities
enabled by this market may increase the likelihood of misbehaviour. Consequently, there is
a need to increase the collateral staked by validators to enhance security, which we plan to
address through restaking. In instances where an agent double-signs, a challenging period will
be initiated in the MANTIS rollup. During this period, various observers can demonstrate that
an agent double-signed. If the block proposer fails to send the relay’s signed message, which
authorised him to sign another block, the agent will be penalised. Conversely, if the message is
sent, the relay will face penalties. The amounts for slashing should consider the costs associated
with atomicity failure, missed slots, and other related expenses.
While a just-in-time auction can be close to efficient when the number of domains is small
(m = 2, 3), all mechanisms with some desiderata constraints have very inefficient outcomes
(where the inefficiency growth is at least polynomial growth with a fractional exponent in the
number of domains) on equilibrium due to selfish and rational behaviour of block proposal,
since agents have monopolistic veto power for not selling combinatorial blocks. Also, the com-
putational complexity of allocating combinatorial resources [13] makes it more complex to run
optimal auctions just-in-time. For this reason, we propose a future blockspace market. Future
blockspace markets make future blocks fungible, decreasing the monopolistic power of sellers on
13
selling combinations of blocks and increasing the efficiency (as an example, a double auction
with full complementary goods [2]).
7 Conclusions
The MANTIS framework aims to enhance cross-chain transactions and improve the efficiency
of decentralised finance. The key points and future directions are outlined below:
4. Challenges and Outlook: As MANTIS is still in the conceptual stage, addressing chal-
lenges related to managing complex cross-chain interactions and maintaining high security
will be crucial as it progresses toward implementation and private intent execution.
14
References
[1] Across Protocol. Across protocol documentation. URL https://docs.across.to/.
Accessed on 2024-05-01.
[2] Rakesh Chaturvedi and Ashish Kumar Pandey. Double auction for trading perfect comple-
ments. Journal of Public Economic Theory, 26(1):e12672, 2024.
[3] Tarun Chitra, Kshitij Kulkarni, Mallesh Pai, and Theo Diamandis. An analysis of intent-
based markets. arXiv preprint arXiv:2403.02525, 2024.
[4] Composable Foundation. Picasso—the cross-ecosystem IBC & restaking hub, 2024. URL
https://docs.picasso.network/. Accessed: 2024-05-01.
[5] CoW DAO. CoW Protocol documentation, 2024. URL https://docs.cow.fi/. Accessed
on 23 April 2024.
[6] Philip Daian, Steven Goldfeder, Tyler Kell, Yunqi Li, Xueyuan Zhao, Iddo Bentov, Lorenz
Breidenbach, and Ari Juels. Flash boys 2.0: Frontrunning in decentralized exchanges,
miner extractable value, and consensus instability. In 2020 IEEE symposium on security
and privacy (SP), pages 910–927. IEEE, 2020.
[9] Liesl Eichholz. Introducing Essential: We are intents, Jul. 2023. URL https://blog.ess
ential.builders/introducing-essential/.
[11] Uriel Feige, Michal Feldman, Nicole Immorlica, Rani Izsak, Brendan Lucier, and
Vasilis Syrgkanis. A unifying hierarchy of valuations with complements and substi-
tutes. Proceedings of the AAAI Conference on Artificial Intelligence, 29(1), Feb. 2015.
DOI: 10.1609/aaai.v29i1.9314. URL https://ojs.aaai.org/index.php/AAAI/article/
view/9314.
[13] Yuzo Fujishima, Kevin Leyton-Brown, and Yoav Shoham. Taming the computational com-
plexity of combinatorial auctions: Optimal and approximate approaches. In IJCAI, vol-
ume 99, pages 548–553, Jul. 1999.
[14] Christopher Goes. ICS-20: Fungible token transfer, 2019. URL https://github.com/cos
mos/ibc/blob/main/spec/app/ics-020-fungible-token-transfer/.
[15] Christopher Goes. The Interblockchain Communication Protocol: An overview, Jun. 2020.
[16] Christopher Goes and Juwoon Yun. ICS-3: Connection semantics, 2019. URL https:
//github.com/cosmos/ibc/tree/main/spec/core/ics-003-connection-semantics.
[17] Christopher Goes, Awa Sun Yin, and Adrian Brink. Anoma: a unified architecture for
full-stack decentralised applications, Aug. 2022. URL https://media.githubuserconten
t.com/media/anoma/whitepaper/main/whitepaper.pdf.
15
[18] Kamino Finance. Kamino lend litepaper, 2023. URL https://docs.kamino.finance/ka
mino-lend-litepaper. Accessed: 2024-05-13.
[19] Jungyeon Kim, Meryam Essaid, and Hongtaek Ju. Inter-blockchain communication mes-
sage relay time measurement and analysis in cosmos. In 2022 23rd Asia-Pacific Network
Operations and Management Symposium (APNOMS), pages 1–6, Takamatsu, Japan, 2022.
IEEE. DOI: 10.23919/APNOMS56106.2022.9919970.
[20] Brendan Lucier and Allan Borodin. Price of anarchy for greedy auctions. In Proceedings
of the twenty-first annual ACM-SIAM symposium on Discrete Algorithms, pages 537–553.
SIAM, 2010.
[22] Mary McGilvray. The IBC Protocol 2023 year in review, Dec. 2023. URL https://www.
ibcprotocol.dev/blog/2023-year-in-review.
[23] Ralph C. Merkle. Method of providing digital signatures, 1979. URL https://image-pp
ubs.uspto.gov/dirsearch-public/print/downloadPdf/4309569. US Patent 4,309,569.
[24] Corwin Smith and Joseph Cook. Light clients, 2023. URL https://ethereum.org/en/de
velopers/docs/nodes-and-clients/light-clients/.
16