File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ async fn withdraw_all() -> Result<()> {
59
59
60
60
context. fast_forward_minutes ( 6 ) . await ?;
61
61
62
+ // 3 calls to fully claim 210 jars
63
+ context. sweat_jar ( ) . claim_total ( None ) . with_user ( & alice) . await ?;
64
+ context. sweat_jar ( ) . claim_total ( None ) . with_user ( & alice) . await ?;
62
65
context. sweat_jar ( ) . claim_total ( None ) . with_user ( & alice) . await ?;
63
66
64
67
let alice_balance = context. ft_contract ( ) . ft_balance_of ( alice. to_near ( ) ) . await ?;
Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ pub trait InitApi {
27
27
/// The `ClaimApi` trait defines methods for claiming interest from jars within the smart contract.
28
28
#[ make_integration_version]
29
29
pub trait ClaimApi {
30
- /// Claims all available interest from all deposit jars belonging to the calling account.
30
+ /// Claims available interest from up to 100 jars with the most interest for the calling account.
31
+ /// If the calling account has more than 100 jars, the user will need to call this method multiple times
32
+ /// to claim interest from all jars.
31
33
///
32
34
/// * `detailed` – An optional boolean value specifying if the method must return only total amount of claimed tokens
33
35
/// or detailed summary for each claimed jar. Set it `true` to get a detailed result. In case of `false`
You can’t perform that action at this time.
0 commit comments