Skip to content

Commit

Permalink
program: default-contract-tier-fix (#1013)
Browse files Browse the repository at this point in the history
* program: default-contract-tier-fix

* update link

---------

Co-authored-by: lil perp <[email protected]>
  • Loading branch information
0xbigz and crispheaney committed Apr 15, 2024
1 parent d8a1086 commit 96950de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixes

- program: set default ContractTier to HighlySpeculative ([#1013](https://github.com/drift-labs/protocol-v2/pull/1013))
- program: avoid dust borrows not being transferred

### Breaking
Expand Down
2 changes: 1 addition & 1 deletion programs/drift/src/state/perp_market.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub enum ContractTier {

impl ContractTier {
pub fn default() -> Self {
ContractTier::Speculative
ContractTier::HighlySpeculative
}

pub fn is_as_safe_as(&self, best_contract: &ContractTier, best_asset: &AssetTier) -> bool {
Expand Down

0 comments on commit 96950de

Please sign in to comment.