Function listen::raydium::sweep_raydium
source ยท pub async fn sweep_raydium(
rpc_client: &RpcClient,
wallet_path: String,
) -> Result<(), Box<dyn Error>>
Expand description
sweep_raydium is a bit iffy in terms of creating the objects on every swap, but it works and does not require refactoring the existing raydium code it works just fine for a few hundred swaps to perform as part of sweep, but it makes sense to refactor a bit for large scale operations