Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Feat/add leverage #15

Merged
merged 2 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/msg/instantiate_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ use cosmwasm_schema::cw_serde;

#[cw_serde]
pub struct InstantiateMsg {
pub epoch_cycle_interval: u128,
}
7 changes: 4 additions & 3 deletions src/msg/query_resp/earn/get_pool_resp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub enum FilterType {
FilterPerpetual = 1,
FilterFixedWeight = 2,
FilterDynamicWeight = 3,
FilterLeverage = 4,
}

#[cw_serde]
Expand All @@ -19,9 +20,9 @@ pub struct PoolAsset {
#[cw_serde]
pub struct PoolResp {
pub assets: Vec<PoolAsset>, // eg : [{{"denom":"uatom", "amount":"1000"}, "weight":"10"}, {{"denom":"uusdc", "amount":"100"}, "weight":"1"}, ...]
pub pool_ratio: Decimal,
pub dex_apr: Decimal,
pub eden_apr: Decimal,
pub pool_ratio: String,
pub rewards_apr: Decimal,
pub borrow_apr: Decimal,
pub leverage_lp: Decimal,
pub perpetual: Decimal,
pub tvl: Decimal,
Expand Down
Loading