friedgerpool-payout-hints
SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9Source Code
;; mapping between stacker and recipient of stacker's rewards
(define-map payout-map principal principal)
;; set receiver of the stacker's rewards
(define-public (set-payout-recipient (recipient principal))
(ok (map-set payout-map tx-sender recipient)))
;; remove receiver of the stacker's rewards. Rewards will be sent to stacker
(define-public (delete-payout-recipient (recipient principal))
(ok (map-delete payout-map tx-sender)))Functions (2)
| Function | Access | Args |
|---|---|---|
| set-payout-recipient | public | recipient: principal |
| delete-payout-recipient | public | recipient: principal |