Skip to content

Commit

Permalink
Bump to v0.3.0-beta.1, remove old comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jun 23, 2023
1 parent d623163 commit cf328f5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"

[workspace.package]
edition = "2021"
version = "0.3.0-alpha.1"
version = "0.3.0-beta.1"
license = "MIT"
repository = "https://github.com/osmosis-labs/mesh-security"

Expand Down
6 changes: 1 addition & 5 deletions contracts/provider/external-staking/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ impl ExternalStakingContract<'_> {
let tx = self.pending_txs.load(deps.storage, tx_id)?;
println!("tx: {:?}", tx);

// TODO: Verify tx comes from the right context
// Verify tx is the right type
ensure!(
matches!(tx, Tx::InFlightRemoteStaking { .. }),
Expand Down Expand Up @@ -142,7 +141,6 @@ impl ExternalStakingContract<'_> {
let stake = stake_lock.write()?;
stake.stake += tx_amount;

// Commit distribution (need to unlock it first)
// Distribution alignment
stake
.points_alignment
Expand Down Expand Up @@ -176,7 +174,6 @@ impl ExternalStakingContract<'_> {
// Load tx
let tx = self.pending_txs.load(deps.storage, tx_id)?;

// TODO: Verify tx comes from the right context
// Verify tx is the right type
ensure!(
matches!(tx, Tx::InFlightRemoteStaking { .. }),
Expand Down Expand Up @@ -330,7 +327,6 @@ impl ExternalStakingContract<'_> {
// Load tx
let tx = self.pending_txs.load(deps.storage, tx_id)?;

// TODO: Verify tx comes from the right context
// Verify tx is of the right type
ensure!(
matches!(tx, Tx::InFlightRemoteUnstaking { .. }),
Expand Down Expand Up @@ -364,6 +360,7 @@ impl ExternalStakingContract<'_> {
stake.stake -= tx_amount;

// FIXME? Release period being computed after successful IBC tx
// (Note: this is good for now, but can be revisited in v1 design)
let release_at = env.block.time.plus_seconds(config.unbonding_period);
let unbond = PendingUnbond {
amount: tx_amount,
Expand Down Expand Up @@ -396,7 +393,6 @@ impl ExternalStakingContract<'_> {
// Load tx
let tx = self.pending_txs.load(deps.storage, tx_id)?;

// TODO: Verify tx comes from the right context
// Verify tx is of the right type
ensure!(
matches!(tx, Tx::InFlightRemoteUnstaking { .. }),
Expand Down

0 comments on commit cf328f5

Please sign in to comment.