Hylo Clients
Offchain clients for Hylo protocol transactions and quotes.
Quick Start
use hylo_clients::prelude::*;
# async fn example() -> Result<()> {
let client = ExchangeClient::new_random_keypair(
Cluster::Mainnet,
CommitmentConfig::confirmed(),
)?;
let user = Pubkey::new_unique();
let signature = client.run_transaction::<JITOSOL, HYUSD>(MintArgs {
amount: UFix64::one(),
user,
slippage_config: None,
}).await?;
# Ok(())
# }
Clients
- [
exchange_client::ExchangeClient] - Mint/redeem/swap operations for
hyUSD and xSOL
- [
stability_pool_client::StabilityPoolClient] - Deposit/withdraw
operations for sHYUSD