Architecture of Relay Vaults
The Relay Vaults can be considered to be an “accelerator” where funds are “dispersed” without requiring to wait for the full resolution of the bridge, in exchange for a small fee.In order to abstract the underlying bridges, we rely on the concept of
BridgeProxy
. A BridgeProxy contract is deployed on
both the origin chain and the vault’s chain and implements the specificities of
the underlying bridge.
Each origin has its own fee which represents the “opportunity cost” of the
funds being bridged: shorter bridges should have lower fees than longer ones.
Finally, the vault contract is designed to resist “inflation” attacks. Any yield
generated (thru fees, or extra rewards) is not accrued instantly by the vault,
but streamed over a specific period of time, rendering any attack where funds
deposited and withdrawn in a short period of time ineffective.