Rivera Audit
  • Intro
  • Executive Summary
  • Scalability Audit
    • Current System
    • Issues Metrics
    • Scalable Architecture
    • Recommendations Explanation
    • Multichain Comparison and Contract Stats
Powered by GitBook
On this page

Executive Summary

PreviousIntroNextScalability Audit

Last updated 1 year ago

Rivera Money is a decentralized protocol that enhances liquidity management by transforming concentrated positions into yield tokens compatible with the DeFi ecosystem. The protocol achieves this through its ALM (Active Liquidity Management) Vault, concentrating assets within an active range to optimize yield generation.

Rivera intends to go multi-chain and aims to enhance the onboarding experience for investors and fund managers via UX improvements. And provide a consistent interface for Defi Developers to build upon Rivera Vaults as the base layer. We focus on the scalability of the project with that in mind.

In this report, we focus on Vault contracts and Gelato relay. Strategy contract contains business logic so to avoid conflict with the value proposition of Rivera, any business logic aspect is not treated under this audit.

Below is given a summary of the salient issues found across categories and recommendations ranked in terms of priority and impact. It is recommended to follow the order of recommendations as prescribed below, since the highest ROI with the lowest time-to-market recommendations may make the rest redundant.

Category / Issue Intensity
Undetermined
Informational
Low
Medium
High

Bottlenecks

☑️

UX

☑️

Consistency/Inter-operability

☑️

Security

☑️

Cost of Infrastructure

☑️

Recommendation
Category
ROI
Time-to-market

Security

5x

3 days

UX

5x

1 week

UX

5x

1 week

Consistency

5x

2 week

Consistency

5x

2 week

Security

3x

3 days

Security

3x

1 week

Consistency

2x

1 week

Cost of Infrastructure

1.5x

2 days

Cost of Infrastructure

1.5x

3 days

Slippage Management
Gasless Transactions
Privy
CCIP instead of Router Protocol
Optional Rivera Router Contract
Access Control by Open zeppelin
Merkle Proofs
Upgradeability of Strategy Contract
Immutable Variables
Safemath