Skip to content

Commit

Permalink
changes from #609
Browse files Browse the repository at this point in the history
  • Loading branch information
ajansari95 committed Jun 4, 2024
1 parent f3d1465 commit ee02480
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion smart-contracts/contracts/cl-vault/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,20 @@ impl PoolConfig {
pub const POOL_CONFIG: Item<PoolConfig> = Item::new("pool_config");

/// POSITION
#[cw_serde]
pub struct OldPosition {
pub position_id: u64,
}

#[cw_serde]
pub struct Position {
pub position_id: u64,
pub join_time: u64, // env block time at time of creation, or taken by osmosis protocol response
pub claim_after: Option<u64>, // this should be off chain computed and set in order to avoid forfeiting incentives
}

pub const POSITION: Item<Position> = Item::new("position");
pub const OLD_POSITION: Item<OldPosition> = Item::new("position");
pub const POSITION: Item<Position> = Item::new("position_v2");

pub const SHARES: Map<Addr, Uint128> = Map::new("shares");

Expand Down

0 comments on commit ee02480

Please sign in to comment.