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

Commit

Permalink
Feat/add leverage (#15)
Browse files Browse the repository at this point in the history
* chore: add leverage filter type

* chore: remove non-use param from instantiateMsg
  • Loading branch information
kenta-elys authored Dec 8, 2023
1 parent aa70e77 commit db522f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit db522f2

Please sign in to comment.