oil-api 0.7.8

API for interacting with the OIL protocol on Solana
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use steel::*;

#[derive(Debug, Error, Clone, Copy, PartialEq, Eq, IntoPrimitive)]
#[repr(u32)]
pub enum OilError {
    #[error("Amount too small")]
    AmountTooSmall = 0,

    #[error("Not authorized")]
    NotAuthorized = 1,
}

error!(OilError);