-
Notifications
You must be signed in to change notification settings - Fork 9
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
expose test-only setup fn #19
Conversation
a198528
to
ee4f962
Compare
@@ -382,6 +382,18 @@ module suilend::lending_market { | |||
fulfill_liquidity_request(lending_market, reserve_array_index, liquidity_request, ctx) | |||
} | |||
|
|||
// Compount interest for reserve of type T |
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.
nit: spelling error
clock: &Clock, | ||
) { | ||
let reserve = vector::borrow_mut(&mut lending_market.reserves, reserve_array_index); | ||
assert!(reserve::coin_type(reserve) == type_name::get<T>(), EWrongType); |
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.
dont need type/dont need this check i think.
@@ -382,6 +382,18 @@ module suilend::lending_market { | |||
fulfill_liquidity_request(lending_market, reserve_array_index, liquidity_request, ctx) | |||
} | |||
|
|||
// Compount interest for reserve of type T |
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.
typo
@@ -741,7 +753,7 @@ module suilend::lending_market { | |||
); | |||
} | |||
} | |||
|
|||
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.
remove whitespace? linter acting weird?
@@ -382,6 +382,18 @@ module suilend::lending_market { | |||
fulfill_liquidity_request(lending_market, reserve_array_index, liquidity_request, ctx) | |||
} | |||
|
|||
// Compount interest for reserve of type T | |||
public fun compound_interest<P, T>( |
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.
don't need type T here
No description provided.