redeeming-reserve-v1
SPN5AKG35QZSK2M8GAMR4AFX45659RJHDW353HSGSource Code
;; @contract Redeeming Reserve
;; @version 1
(use-trait sip-010-trait .sip-010-trait.sip-010-trait)
;;-------------------------------------
;; Get USDh
;;-------------------------------------
(define-public (transfer (amount uint) (recipient principal) (redeeming-asset <sip-010-trait>))
(begin
(try! (contract-call? .hq-v1 check-is-protocol contract-caller))
(ok (try! (as-contract (contract-call? redeeming-asset transfer amount tx-sender recipient none))))
)
)Functions (1)
| Function | Access | Args |
|---|---|---|
| transfer | public | amount: uint, recipient: principal, redeeming-asset: <sip-010-trait> |