Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add get_lockup_duration to Staking trait #4

Merged
merged 8 commits into from
Aug 31, 2022

Conversation

apollo-bobby
Copy link
Contributor

No description provided.

@apollo-bobby apollo-bobby self-assigned this Aug 26, 2022
@apollo-pablo apollo-pablo self-requested a review August 30, 2022 08:05
Copy link
Contributor

@apollo-pablo apollo-pablo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@@ -290,4 +296,8 @@ impl Staking<OsmosisOptions, Coin> for OsmosisSuperfluidStaking {
// Rewards are automatically distributed to stakers every epoch.
Ok(Response::new())
}

fn get_lockup_duration(&self) -> Result<CwDuration, CwDexError> {
todo!()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo -> panics here, todo macro is only for prototyping. Should we handle with a custom message ( ContractError("lockup duration not implemented for osmosis") )?

@georgemc98 georgemc98 force-pushed the dev/osmosis-vault-unstake-withdraw branch from 69fa676 to 2880d2d Compare August 31, 2022 12:48
@georgemc98 georgemc98 merged commit d823aa6 into master Aug 31, 2022
@apollo-sturdy apollo-sturdy deleted the dev/osmosis-vault-unstake-withdraw branch October 21, 2022 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants