Pike Universal Vault

Pike Universal Vault

Created
Dec 12, 2024 12:46 PM
Tags

Pike Universal Vaults (UV) is the first practical application of POCA where UV leverages cross-chain instructions for rebalancing liquidity on supported chains in order to optimize LP yields. By employing hub-and-spoke architecture and being straightforward in rebalancing mechanics, UV is the perfect example of how POCA can simplify the process of building cross-chain protocols.

UV state synchronization

The task of correctly and timely synchronizing states over multiple chains is critical for UV rebalancing and implies ensuring that the state of assets on one chain is accurately reflected on another chain, with delays being a natural part of the system.

While the full synchronization of remote chains is often achieved through using Merkle proofs or other cryptographic methods to verify and reproduce all state transitions — for UV, being a special case that leverages AMBs to sync, — the challenge mainly lies in maintaining eventual synchronization with minimal communication overhead and without compromising on security.

image

Challenging issues

Generally speaking, when designing and implementing a system meeting such requirements, three main issues should be considered carefully:

  • Minimal synchronization time — for timely circulation of UV funds between chains
  • Minimal communication overhead — to reduce the total number of state syncing messages
  • Effective consistency maintenance — to correctly restore syncing if any type of failure occurs

Solution

Solving for UV means solving two major problems by finding:

  • Reliable way to reflect the actual availability of funds on different chains
  • Time/cost-effective way to optimally route state syncing messages between chains

This is achieved by leveraging double entry recording on all chains and using credit system that help to separate confirmed funds from funds being transferred.

POCA helps to implement and solve both issues by using Queries, Hooks and conditionals with stack-based execution.