Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #251 from MXCzkEVM/blueberry_ring
Browse files Browse the repository at this point in the history
fix: miner epoch expire update
  • Loading branch information
reasje authored Jul 16, 2024
2 parents a9c5daa + 75c5dc9 commit 2635e1a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
29 changes: 16 additions & 13 deletions lib/features/common/contract/miner_use_case.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,29 @@ class MinerUseCase extends ReactiveUseCase {
String cTranslate(String key) =>
_contextLessTranslationUseCase.translate(key);

Future<bool> claimMinersReward(
{required List<String> selectedMinerListId,
required Account account,
required void Function(
String title,
String? text,
)
showNotification,
required String Function(
String key,
)
translate}) async {
Future<bool> claimMinersReward({
required List<String> selectedMinerListId,
required Account account,
required void Function(
String title,
String? text,
)
showNotification,
required String Function(
String key,
)
translate,
}) async {
return await _repository.minerRepository.claimMinersReward(
selectedMinerListId: selectedMinerListId,
account: account,
showNotification: showNotification,
translate: translate);
}

Future<MinerListModel> getAddressMiners(String address) async =>
Future<MinerListModel> getAddressMiners(
String address,
) async =>
await _repository.minerRepository.getAddressMiners(address);

Future<List<ClaimEarn>> helperGetClaimRewards(
Expand Down
2 changes: 1 addition & 1 deletion packages/shared

0 comments on commit 2635e1a

Please sign in to comment.