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

feat: pool status and integration tests #4

Merged
merged 1 commit into from
Nov 22, 2022
Merged

Conversation

Ryang-21
Copy link
Contributor

No description provided.

Copy link
Contributor

@mootz12 mootz12 left a comment

Choose a reason for hiding this comment

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

Gonna merge this through even through I have some feedback.

Appears my formatter wasn't applying, so the conflict here will be pretty gnarly if I keep working.

/// Pool status is changed to 'pool_status" if invoker is the admin
/// 0 - active, 1 - on ice, 2 - frozen
///
/// Returns true on success and error otherwise
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for this to return true, it can just return or be a pool error

};

// #[test]
// fn test_pool_borrow_no_collateral_panics() {
Copy link
Contributor

Choose a reason for hiding this comment

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

assuming this was an accident?

use crate::common::{create_mock_oracle, create_wasm_lending_pool, PoolError};

#[test]
fn test_set_status_not_admin_panic() {
Copy link
Contributor

Choose a reason for hiding this comment

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

positive tests for setting to active, on ice, and frozen should exist

@mootz12 mootz12 merged commit 259404b into main Nov 22, 2022
@mootz12 mootz12 deleted the BLND-101/PoolStatus branch January 17, 2023 15:12
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.

2 participants