#decode #defi #carbon #struct #parameters #data #parse-strategy

carbon-defi-decode

A simple lib to decode Carbon DeFi strategies

3 releases (breaking)

Uses new Rust 2024

0.3.0 Mar 27, 2025
0.2.0 Mar 27, 2025
0.1.0 Mar 12, 2025

#13 in #carbon

Download history 96/week @ 2025-03-08 31/week @ 2025-03-15 202/week @ 2025-03-22 66/week @ 2025-03-29

395 downloads per month

MIT license

18KB
341 lines

Carbon DeFi Decode

A simple library to decode Carbon Protocol's strategies.

Overview

Carbon DeFi Decode is a Rust library designed to parse and interpret Carbon Protocol's strategy data. It uses alloy under the hood.

Installation

Run this command in your project

cargo add carbon-defi-decode

Features

  • Decode Carbon Protocol strategy data
  • Parse strategy parameters
  • Convert raw data into usable Rust structs

Usage

use carbon-defi-decode::decode::parse_strategy;

let parsed_strategy = parse_strategy(strategy);

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies

~10MB
~195K SLoC