Skip to content

Commit 193ef14

Browse files
committed
Merge branch 'leo-ckbtc-guard' into 'master'
feat(ckBTC) Add guard to distribute_kyt_fee See merge request dfinity-lab/public/ic!12672
2 parents 7cd834e + 55b21e4 commit 193ef14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rs/bitcoin/ckbtc/minter/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ fn check_invariants() -> Result<(), String> {
7777
#[candid_method(update)]
7878
#[update]
7979
async fn distribute_kyt_fee() {
80+
let _guard = match ic_ckbtc_minter::guard::DistributeKytFeeGuard::new() {
81+
Some(guard) => guard,
82+
None => return,
83+
};
8084
ic_ckbtc_minter::distribute_kyt_fees().await;
8185
}
8286

0 commit comments

Comments
 (0)