Security First: Final Audits with Quantstamp Underway

Ensuring Reliability with Final Quantstamp Audits

Hey โ€” It's Maciej again,

This already marks the 16th edition of Multichain Matters, where we delve into the latest developments shaping the landscape of decentralized cross-chain interactions. This month, I talk you through the status of our audit, our newsletter app, and the power of Escrow Orders.

Estimated read time: 4.6 minutes, 5.7 for those who take it all in at a leisurely pace.

๐Ÿ”— How t3rn Will Leverage Caldera to Optimize Cross-Chain Execution

๐Ÿ’ก Learn more regarding our strategic grant from Arbitrum Foundation

๐Ÿ” Final audits with Quantstamp in process

๐ŸŽค Brussels: My keynote at Polkadot Decoded 2024

๐ŸŒ Multichain Matters App Integration

๐Ÿ” Understanding the Power of Escrow Orders

๐Ÿ› ๏ธ Lifecycle and Mechanics of an Escrow Order Contract

๐Ÿ”„ Claiming and Refunding Orders

๐Ÿ”— How t3rn Will Leverage Caldera to Optimize Cross-Chain Execution

In case you missed itโ€ฆ last month we shared that t3rn is leveraging Caldera's rollup-as-a-service on Arbitrum Orbit to enhance cross-chain execution processes, particularly Attestation and Bidding. Caldera's advanced infrastructure addresses limitations of Layer 1 blockchains by improving transaction speed, reducing costs, and enabling real-time bidding. This collaboration enhances t3rnโ€™s Executors' efficiency, ensuring secure and reliable cross-chain interactions. The deployment underscores t3rn's commitment to providing robust cross-chain solutions and the transformative potential of rollup technology.

Make sure to read more in the full blog post:

๐Ÿ’ก Learn more regarding our strategic grant from Arbitrum Foundation

Last month, we shared with you that t3rn had secured a strategic grant from the Arbitrum Foundation. This grant highlights our dedication to optimizing cross-chain operations for improved reliability and user trust. This funding will deploy attestors on Arbitrum Orbit L3, improving decentralization and security. The grant covers deployment costs and gas fees, ensuring sustainable advancements. 

In case you want to learn more, we recently published a blog post with all the details:

๐ŸŽค Brussels: My keynote at Polkadot Decoded 2024

This year many key crypto events took place in Brussels, Belgium. During my keynote presentation at Polkadot Decoded 2024, I shared insights about our settlement execution layer, which enables users to swap between most of the EVM L2s and the t3rn parachain. To cost-efficiently bridge tokens and at the same time give access to all of the smart contracts to tap into the settlement layer.

In case you missed it, here is a recording of my presentation: One to Roll Them All

๐ŸŒ Multichain Matters App Integration

Our email software, beehiiv, now supports the addition of custom apps. That allows us to include our very own Multichain Matters app right on your mobile homescreen! 

Explore this new feature and add the Multichain Matters app to stay ahead in the world of blockchain interoperability.

Tech Update

๐Ÿ” Understanding the Power of Escrow Orders

In previous editions, we've explored the intricacies of cross-chain orders and how they facilitate interoperable execution. However, we haven't yet delved into the unique advantages offered by submitting orders via the escrow lock mechanism. 

TLDR: Escrow Orders enable the settlement of multiple orders across multiple chains under a single multi-order submission, whether initiated by a user or a smart contract. This capability is central to realizing t3rnโ€™s vision of fail-safe cross-chain smart contract execution.

What is an Escrow Order Contract?

An escrow order contract is a smart contract designed to securely hold funds until specific conditions are met, ensuring that transactions only proceed when all partiesโ€™ terms are satisfied. If the multi-order consists of multiple atomic escrow orders, the funds and side effects committed by executors to escrows will be reverted if conditions are not met. This ensures that users can claim the totality of their rewards, while each executor can reclaim their respective atomic order executions.

๐Ÿ› ๏ธ Lifecycle and Mechanics of an Escrow Order Contract

Creating an Escrow Order

Users create escrow orders by providing necessary details such as the target account, asset type, amount, and timeout duration. The contract validates these details, calculates any applicable fees, and records the order while emitting an EscrowOrderCreated event for transparency.

Locking Funds

Once an order is created, users must lock the specified funds into escrow. The contract verifies the assetโ€™s validity and ensures that the required protocol fees are paid before locking the funds. This action is confirmed through an EscrowFundsLocked event.

๐Ÿ”„ Claiming and Refunding Orders

The contract supports both claiming and refunding of orders based on predefined conditions, ensuring all atomic orders in a multi-order are satisfied before any funds are transferred:

  • Claiming an Order: When the conditions for all atomic orders in a multi-order are met (e.g., target account confirms receipt), the executors can claim the rewards for their valid executions within escrow. The contract checks the validity of the claim for all atomic orders, transfers the rewards to the executors, and emits a Claimed event.

  • Refunding an Order: If the conditions for any atomic order in a multi-order are unmet within the specified timeout, users can request a refund. The contract verifies the refund eligibility, reverts the funds and side effects committed to the escrows, and returns the funds to the sender. A Claimed event is emitted to indicate the refund, ensuring both the user can reclaim the totality of the funds and each executor can reclaim their respective atomic order executions.

Conclusion

The Escrow Order contract is a powerful tool for managing secure, trustless transactions in DeFi. By supporting order creation, fund locking, claims, and refunds, it ensures that funds are only transferred when conditions are met, aligning with t3rn's vision of fail-safe cross-chain smart contract execution. This mechanism is essential for anyone looking to leverage the full potential of decentralized finance across multiple chains.

Stay tuned for more insights and advancements in our upcoming editions of Multichain Matters!

Maciej Baj
Founder and CTO of t3rn