Skip to content

Commit

Permalink
chore: adds remaining events (apollodao#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishab | Apollo DAO authored Feb 3, 2023
1 parent 1ce5566 commit 97b88f5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cw-dex/src/implementations/osmosis/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ impl Unlock for OsmosisStaking {
_amount: Uint128,
) -> Result<Response, CwDexError> {
// Osmosis automatically sends the unlocked tokens after the lockup duration
Ok(Response::new())
let event =
Event::new("apollo/cw-dex/withdraw_unlocked").add_attribute("type", "osmosis_staking");
Ok(Response::new().add_event(event))
}
}

Expand Down Expand Up @@ -292,7 +294,9 @@ impl Unlock for OsmosisSuperfluidStaking {
_amount: Uint128,
) -> Result<Response, CwDexError> {
// Osmosis automatically sends the unlocked tokens after the lockup duration
Ok(Response::new())
let event = Event::new("apollo/cw-dex/withdraw_unlocked")
.add_attribute("type", "osmosis_superfluid_staking");
Ok(Response::new().add_event(event))
}
}

Expand Down

0 comments on commit 97b88f5

Please sign in to comment.