(define-public (claim-and-transfer (targetCycle uint) (dest principal))
  (begin
    (print (contract-call? 'SP466FNC0P7JWTNM2R9T199QRZN1MYEDTAR0KP27.miamicoin-core-v1 claim-stacking-reward targetCycle))
    (print (stx-transfer? (print (stx-get-balance tx-sender)) tx-sender dest))
    (print
      (contract-call?
        'SP466FNC0P7JWTNM2R9T199QRZN1MYEDTAR0KP27.miamicoin-token
        transfer
        (unwrap! (print (contract-call? 'SP466FNC0P7JWTNM2R9T199QRZN1MYEDTAR0KP27.miamicoin-token get-balance tx-sender)) (err u10))
        tx-sender
        dest
        none
      )
    )
    (ok true)
  )
)
