cotyledon 0.1.0

Framework for writing sprouts — sandboxed, event-driven on-chain trading bots.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Meteora liquidity plugin (official, behind the `meteora` feature).

use crate::{Ctx, Receipt, Result, Usd, Wallet};

/// Add `amount` (USD) of liquidity to a Meteora pool.
pub async fn add_liquidity(
    _ctx: &Ctx,
    _wallet: &Wallet,
    _pool: &str,
    _amount: Usd,
) -> Result<Receipt> {
    // TODO: build the add-liquidity tx, sign, submit, return the `Receipt`.
    todo!("meteora add_liquidity")
}