1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#![allow(missing_docs)]
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct FinancePlatform {
pub name: String,
pub facts: String,
pub category: String,
pub centralized: bool,
pub website_url: String,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct FinanceProduct {
pub platform: String,
pub identifier: String,
pub supply_rate_percentage: Option<String>,
pub borrow_rate_percentage: Option<String>,
pub number_duration: Option<f64>,
pub length_duration: Option<f64>,
pub start_at: i64,
pub end_at: i64,
pub value_at: i64,
pub redeem_at: i64,
}