-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor: merged jars #114
base: dev
Are you sure you want to change the base?
Conversation
self.score = AccountScore::new(timezone); | ||
} | ||
(None, false) => { | ||
panic_str("Trying to create score based jar for without providing time zone"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
panic_str("Trying to create score based jar for without providing time zone"); | |
panic_str("Trying to create score based jar without providing time zone"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent job! 💪
Not only the jars were optimized but overall the architecture became cleaner.
Approving on condition that all other comments will be fixed.
contract/src/jar/model/v2.rs
Outdated
pub struct JarV2 { | ||
pub deposits: Vec<Deposit>, | ||
pub cache: Option<JarCache>, | ||
// TODO: get rid of it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will you do it in this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yas
/// Describes additional terms for Flexible products. | ||
Flexible(FlexibleProductTerms), | ||
|
||
/// TODO: doc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doc
contract/src/jar/model/v2.rs
Outdated
self | ||
} | ||
|
||
pub(crate) fn try_lock(&mut self) -> &mut Self { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In which cases we use lock
and in which try_lock
?
No description provided.