-
Notifications
You must be signed in to change notification settings - Fork 13
/
marvellous-silver-guineafowl.clar
20 lines (18 loc) · 1.78 KB
/
marvellous-silver-guineafowl.clar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(use-trait nft-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)
(define-constant CONTRACT-OWNER tx-sender)
(define-constant ERR-NOT-AUTHORIZED u401)
(define-public (unstake-all)
(begin
(asserts! (is-eq tx-sender CONTRACT-OWNER) (err ERR-NOT-AUTHORIZED))
(try! (contract-call? .bitcoin-monkeys-staking shutoff-switch false))
(try! (contract-call? .bitcoin-monkeys-staking admin-unstake 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys u42))
(try! (contract-call? .bitcoin-monkeys-staking admin-unstake 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys u2329))
(try! (contract-call? .bitcoin-monkeys-staking admin-unstake 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys u2101))
(try! (contract-call? .bitcoin-monkeys-staking admin-unstake 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys u1307))
(try! (contract-call? .bitcoin-monkeys-staking admin-unstake 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys u941))
(try! (contract-call? .bitcoin-monkeys-staking admin-unstake 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys u762))
(try! (contract-call? .bitcoin-monkeys-staking admin-unstake 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys 'SP2KAF9RF86PVX3NEE27DFV1CQX0T4WGR41X3S45C.bitcoin-monkeys u761))
(try! (contract-call? .bitcoin-monkeys-staking shutoff-switch true))
(ok true)
)
)