;; wbsr
;; contractType: public

(impl-trait 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait.nft-trait)

(define-non-fungible-token wbsr uint)

;; Constants
(define-constant DEPLOYER tx-sender)
(define-constant COMM u1000)
(define-constant COMM-ADDR 'SPNWZ5V2TPWGQGVDR6T7B6RQ4XMGZ4PXTEE0VQ0S)

(define-constant ERR-NO-MORE-NFTS u100)
(define-constant ERR-NOT-ENOUGH-PASSES u101)
(define-constant ERR-PUBLIC-SALE-DISABLED u102)
(define-constant ERR-CONTRACT-INITIALIZED u103)
(define-constant ERR-NOT-AUTHORIZED u104)
(define-constant ERR-INVALID-USER u105)
(define-constant ERR-LISTING u106)
(define-constant ERR-WRONG-COMMISSION u107)
(define-constant ERR-NOT-FOUND u108)
(define-constant ERR-PAUSED u109)
(define-constant ERR-MINT-LIMIT u110)
(define-constant ERR-METADATA-FROZEN u111)
(define-constant ERR-AIRDROP-CALLED u112)
(define-constant ERR-NO-MORE-MINTS u113)
(define-constant ERR-INVALID-PERCENTAGE u114)

;; Internal variables
(define-data-var mint-limit uint u100)
(define-data-var last-id uint u1)
(define-data-var total-price uint u0)
(define-data-var artist-address principal 'SP35RGPB77MPE951EKCB9J4YQ68VZAC616D0CC9SA)
(define-data-var ipfs-root (string-ascii 80) "ipfs://ipfs/QmSRu7nwtnDm5FtrXriGxYfwD5hj8BpgFm7V6xBPWacBHr/json/")
(define-data-var mint-paused bool false)
(define-data-var premint-enabled bool false)
(define-data-var sale-enabled bool false)
(define-data-var metadata-frozen bool false)
(define-data-var airdrop-called bool false)
(define-data-var mint-cap uint u1)

(define-map mints-per-user principal uint)
(define-map mint-passes principal uint)

(define-public (claim) 
  (mint (list true)))

(define-public (claim-three) (mint (list true true true)))

;; Default Minting
(define-private (mint (orders (list 25 bool)))
  (mint-many orders))

(define-private (mint-many (orders (list 25 bool )))  
  (let 
    (
      (last-nft-id (var-get last-id))
      (enabled (asserts! (<= last-nft-id (var-get mint-limit)) (err ERR-NO-MORE-NFTS)))
      (art-addr (var-get artist-address))
      (id-reached (fold mint-many-iter orders last-nft-id))
      (price (* (var-get total-price) (- id-reached last-nft-id)))
      (total-commission (/ (* price COMM) u10000))
      (current-balance (get-balance tx-sender))
      (total-artist (- price total-commission))
      (capped (> (var-get mint-cap) u0))
      (user-mints (get-mints tx-sender))
    )
    (asserts! (or (is-eq false (var-get mint-paused)) (is-eq tx-sender DEPLOYER)) (err ERR-PAUSED))
    (asserts! (or (not capped) (is-eq tx-sender DEPLOYER) (is-eq tx-sender art-addr) (>= (var-get mint-cap) (+ (len orders) user-mints))) (err ERR-NO-MORE-MINTS))
    (map-set mints-per-user tx-sender (+ (len orders) user-mints))
    (if (or (is-eq tx-sender art-addr) (is-eq tx-sender DEPLOYER) (is-eq (var-get total-price) u0000000))
      (begin
        (var-set last-id id-reached)
        (map-set token-count tx-sender (+ current-balance (- id-reached last-nft-id)))
      )
      (begin
        (var-set last-id id-reached)
        (map-set token-count tx-sender (+ current-balance (- id-reached last-nft-id)))
        (try! (stx-transfer? total-artist tx-sender (var-get artist-address)))
        (try! (stx-transfer? total-commission tx-sender COMM-ADDR))
      )    
    )
    (ok id-reached)))

(define-private (mint-many-iter (ignore bool) (next-id uint))
  (if (<= next-id (var-get mint-limit))
    (begin
      (unwrap! (nft-mint? wbsr next-id tx-sender) next-id)
      (+ next-id u1)    
    )
    next-id))

(define-public (set-artist-address (address principal))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (ok (var-set artist-address address))))

(define-public (set-price (price uint))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (ok (var-set total-price price))))

(define-public (toggle-pause)
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (ok (var-set mint-paused (not (var-get mint-paused))))))

(define-public (set-mint-limit (limit uint))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (asserts! (< limit (var-get mint-limit)) (err ERR-MINT-LIMIT))
    (ok (var-set mint-limit limit))))

(define-public (burn (token-id uint))
  (begin 
    (asserts! (is-owner token-id tx-sender) (err ERR-NOT-AUTHORIZED))
    (asserts! (is-none (map-get? market token-id)) (err ERR-LISTING))
    (nft-burn? wbsr token-id tx-sender)))

(define-private (is-owner (token-id uint) (user principal))
    (is-eq user (unwrap! (nft-get-owner? wbsr token-id) false)))

(define-public (set-base-uri (new-base-uri (string-ascii 80)))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (asserts! (not (var-get metadata-frozen)) (err ERR-METADATA-FROZEN))
    (print { notification: "token-metadata-update", payload: { token-class: "nft", contract-id: (as-contract tx-sender) }})
    (var-set ipfs-root new-base-uri)
    (ok true)))

(define-public (freeze-metadata)
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (var-set metadata-frozen true)
    (ok true)))

;; Non-custodial SIP-009 transfer function
(define-public (transfer (id uint) (sender principal) (recipient principal))
  (begin
    (asserts! (is-eq tx-sender sender) (err ERR-NOT-AUTHORIZED))
    (asserts! (is-none (map-get? market id)) (err ERR-LISTING))
    (trnsfr id sender recipient)))

;; read-only functions
(define-read-only (get-owner (token-id uint))
  (ok (nft-get-owner? wbsr token-id)))

(define-read-only (get-last-token-id)
  (ok (- (var-get last-id) u1)))

(define-read-only (get-token-uri (token-id uint))
  (ok (some (concat (concat (var-get ipfs-root) "{id}") ".json"))))

(define-read-only (get-paused)
  (ok (var-get mint-paused)))

(define-read-only (get-price)
  (ok (var-get total-price)))

(define-read-only (get-artist-address)
  (ok (var-get artist-address)))

(define-read-only (get-mints (caller principal))
  (default-to u0 (map-get? mints-per-user caller)))

(define-read-only (get-mint-limit)
  (ok (var-get mint-limit)))

(define-data-var license-uri (string-ascii 80) "https://arweave.net/zmc1WTspIhFyVY82bwfAIcIExLFH5lUcHHUN0wXg4W8/2")
(define-data-var license-name (string-ascii 40) "COMMERCIAL")

(define-read-only (get-license-uri)
  (ok (var-get license-uri)))
  
(define-read-only (get-license-name)
  (ok (var-get license-name)))
  
(define-public (set-license-uri (uri (string-ascii 80)))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (ok (var-set license-uri uri))))
    
(define-public (set-license-name (name (string-ascii 40)))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
    (ok (var-set license-name name))))

;; Non-custodial marketplace extras
(use-trait commission-trait 'SP3D6PV2ACBPEKYJTCMH7HEN02KP87QSP8KTEH335.commission-trait.commission)

(define-map token-count principal uint)
(define-map market uint {price: uint, commission: principal, royalty: uint})

(define-read-only (get-balance (account principal))
  (default-to u0
    (map-get? token-count account)))

(define-private (trnsfr (id uint) (sender principal) (recipient principal))
  (match (nft-transfer? wbsr id sender recipient)
    success
      (let
        ((sender-balance (get-balance sender))
        (recipient-balance (get-balance recipient)))
          (map-set token-count
            sender
            (- sender-balance u1))
          (map-set token-count
            recipient
            (+ recipient-balance u1))
          (ok success))
    error (err error)))

(define-private (is-sender-owner (id uint))
  (let ((owner (unwrap! (nft-get-owner? wbsr id) false)))
    (or (is-eq tx-sender owner) (is-eq contract-caller owner))))

(define-read-only (get-listing-in-ustx (id uint))
  (map-get? market id))

(define-public (list-in-ustx (id uint) (price uint) (comm-trait <commission-trait>))
  (let ((listing  {price: price, commission: (contract-of comm-trait), royalty: (var-get royalty-percent)}))
    (asserts! (is-sender-owner id) (err ERR-NOT-AUTHORIZED))
    (map-set market id listing)
    (print (merge listing {a: "list-in-ustx", id: id}))
    (ok true)))

(define-public (unlist-in-ustx (id uint))
  (begin
    (asserts! (is-sender-owner id) (err ERR-NOT-AUTHORIZED))
    (map-delete market id)
    (print {a: "unlist-in-ustx", id: id})
    (ok true)))

(define-public (buy-in-ustx (id uint) (comm-trait <commission-trait>))
  (let ((owner (unwrap! (nft-get-owner? wbsr id) (err ERR-NOT-FOUND)))
      (listing (unwrap! (map-get? market id) (err ERR-LISTING)))
      (price (get price listing))
      (royalty (get royalty listing)))
    (asserts! (is-eq (contract-of comm-trait) (get commission listing)) (err ERR-WRONG-COMMISSION))
    (try! (stx-transfer? price tx-sender owner))
    (try! (pay-royalty price royalty))
    (try! (contract-call? comm-trait pay id price))
    (try! (trnsfr id owner tx-sender))
    (map-delete market id)
    (print {a: "buy-in-ustx", id: id})
    (ok true)))
    
(define-data-var royalty-percent uint u500)

(define-read-only (get-royalty-percent)
  (ok (var-get royalty-percent)))

(define-public (set-royalty-percent (royalty uint))
  (begin
    (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-INVALID-USER))
    (asserts! (and (>= royalty u0) (<= royalty u1000)) (err ERR-INVALID-PERCENTAGE))
    (ok (var-set royalty-percent royalty))))

(define-private (pay-royalty (price uint) (royalty uint))
  (let (
    (royalty-amount (/ (* price royalty) u10000))
  )
  (if (and (> royalty-amount u0) (not (is-eq tx-sender (var-get artist-address))))
    (try! (stx-transfer? royalty-amount tx-sender (var-get artist-address)))
    (print false)
  )
  (ok true)))
  

;; Airdrop
(define-public (admin-airdrop)
  (let
    (
      (last-nft-id (var-get last-id))
    )
    (begin
      (asserts! (or (is-eq tx-sender (var-get artist-address)) (is-eq tx-sender DEPLOYER)) (err ERR-NOT-AUTHORIZED))
      (asserts! (is-eq false (var-get airdrop-called)) (err ERR-AIRDROP-CALLED))
      (try! (nft-mint? wbsr (+ last-nft-id u0) 'SP3Q0WG2CN82AD0X3SW2CRG09ZXS7VRHZWJC7TQ22))
      (map-set token-count 'SP3Q0WG2CN82AD0X3SW2CRG09ZXS7VRHZWJC7TQ22 (+ (get-balance 'SP3Q0WG2CN82AD0X3SW2CRG09ZXS7VRHZWJC7TQ22) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u1) 'SP1195B9V962PS0K70HZ37G0X22F8G8JAM2FJKDTH))
      (map-set token-count 'SP1195B9V962PS0K70HZ37G0X22F8G8JAM2FJKDTH (+ (get-balance 'SP1195B9V962PS0K70HZ37G0X22F8G8JAM2FJKDTH) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u2) 'SP2S0FMBT1SCN0PQDX67P6D65CCPS7F3P8CK4VC0Z))
      (map-set token-count 'SP2S0FMBT1SCN0PQDX67P6D65CCPS7F3P8CK4VC0Z (+ (get-balance 'SP2S0FMBT1SCN0PQDX67P6D65CCPS7F3P8CK4VC0Z) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u3) 'SP2F1XMFB2RZ4257FDZZK4X9BRBBD9VDEVEE0RQDN))
      (map-set token-count 'SP2F1XMFB2RZ4257FDZZK4X9BRBBD9VDEVEE0RQDN (+ (get-balance 'SP2F1XMFB2RZ4257FDZZK4X9BRBBD9VDEVEE0RQDN) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u4) 'SPXHV6DRZQZFVN8H4RE6C9GA5QB1ENK4794132GH))
      (map-set token-count 'SPXHV6DRZQZFVN8H4RE6C9GA5QB1ENK4794132GH (+ (get-balance 'SPXHV6DRZQZFVN8H4RE6C9GA5QB1ENK4794132GH) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u5) 'SP19HFE82PDH5VJFN7EEA836X032RN8ZMVTRVKMCS))
      (map-set token-count 'SP19HFE82PDH5VJFN7EEA836X032RN8ZMVTRVKMCS (+ (get-balance 'SP19HFE82PDH5VJFN7EEA836X032RN8ZMVTRVKMCS) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u6) 'SP2NPKFW6VHPFV1VRXSHMBC6P0J2ZAY0WX4NSNQY7))
      (map-set token-count 'SP2NPKFW6VHPFV1VRXSHMBC6P0J2ZAY0WX4NSNQY7 (+ (get-balance 'SP2NPKFW6VHPFV1VRXSHMBC6P0J2ZAY0WX4NSNQY7) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u7) 'SP1J21CJMF6SST8101E9VTHXED10JAR9ZDJER6K1W))
      (map-set token-count 'SP1J21CJMF6SST8101E9VTHXED10JAR9ZDJER6K1W (+ (get-balance 'SP1J21CJMF6SST8101E9VTHXED10JAR9ZDJER6K1W) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u8) 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X))
      (map-set token-count 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X (+ (get-balance 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u9) 'SP1S9RYRY18PA0C3V4D25KFBP5XZK8MGZ5YZ360PV))
      (map-set token-count 'SP1S9RYRY18PA0C3V4D25KFBP5XZK8MGZ5YZ360PV (+ (get-balance 'SP1S9RYRY18PA0C3V4D25KFBP5XZK8MGZ5YZ360PV) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u10) 'SPNP43EXMF21YN3DGA1M8VGTTTQZ3R55ZWXBKYVH))
      (map-set token-count 'SPNP43EXMF21YN3DGA1M8VGTTTQZ3R55ZWXBKYVH (+ (get-balance 'SPNP43EXMF21YN3DGA1M8VGTTTQZ3R55ZWXBKYVH) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u11) 'SP3EE3DPBTEB8ZYN0PC4ERJEASC3CJX0B70P52R5K))
      (map-set token-count 'SP3EE3DPBTEB8ZYN0PC4ERJEASC3CJX0B70P52R5K (+ (get-balance 'SP3EE3DPBTEB8ZYN0PC4ERJEASC3CJX0B70P52R5K) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u12) 'SP3Q9DRSSCJEA2DHZNHJQZY3R0FXQQ42SK770Y5M8))
      (map-set token-count 'SP3Q9DRSSCJEA2DHZNHJQZY3R0FXQQ42SK770Y5M8 (+ (get-balance 'SP3Q9DRSSCJEA2DHZNHJQZY3R0FXQQ42SK770Y5M8) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u13) 'SPKCREXHEM4AR3VWGDGC46B6D3KM19P4P11STBZ6))
      (map-set token-count 'SPKCREXHEM4AR3VWGDGC46B6D3KM19P4P11STBZ6 (+ (get-balance 'SPKCREXHEM4AR3VWGDGC46B6D3KM19P4P11STBZ6) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u14) 'SPNP43EXMF21YN3DGA1M8VGTTTQZ3R55ZWXBKYVH))
      (map-set token-count 'SPNP43EXMF21YN3DGA1M8VGTTTQZ3R55ZWXBKYVH (+ (get-balance 'SPNP43EXMF21YN3DGA1M8VGTTTQZ3R55ZWXBKYVH) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u15) 'SP2NPKFW6VHPFV1VRXSHMBC6P0J2ZAY0WX4NSNQY7))
      (map-set token-count 'SP2NPKFW6VHPFV1VRXSHMBC6P0J2ZAY0WX4NSNQY7 (+ (get-balance 'SP2NPKFW6VHPFV1VRXSHMBC6P0J2ZAY0WX4NSNQY7) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u16) 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X))
      (map-set token-count 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X (+ (get-balance 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u17) 'SP1PSMB51B33BFDRSPAA6M3BNAH7XYEE8AF8NPVR7))
      (map-set token-count 'SP1PSMB51B33BFDRSPAA6M3BNAH7XYEE8AF8NPVR7 (+ (get-balance 'SP1PSMB51B33BFDRSPAA6M3BNAH7XYEE8AF8NPVR7) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u18) 'SP1Q238642QM8H6BN8ZW7V169YSJPBXSQE4MV2J8P))
      (map-set token-count 'SP1Q238642QM8H6BN8ZW7V169YSJPBXSQE4MV2J8P (+ (get-balance 'SP1Q238642QM8H6BN8ZW7V169YSJPBXSQE4MV2J8P) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u19) 'SPV1R3669HRY86FAEGCZQWSQYV9X23WK8RP3DGFX))
      (map-set token-count 'SPV1R3669HRY86FAEGCZQWSQYV9X23WK8RP3DGFX (+ (get-balance 'SPV1R3669HRY86FAEGCZQWSQYV9X23WK8RP3DGFX) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u20) 'SPKCREXHEM4AR3VWGDGC46B6D3KM19P4P11STBZ6))
      (map-set token-count 'SPKCREXHEM4AR3VWGDGC46B6D3KM19P4P11STBZ6 (+ (get-balance 'SPKCREXHEM4AR3VWGDGC46B6D3KM19P4P11STBZ6) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u21) 'SPA27M9NYFCSK0RA1Q31JFF67QSKMK8E7TN3XFK0))
      (map-set token-count 'SPA27M9NYFCSK0RA1Q31JFF67QSKMK8E7TN3XFK0 (+ (get-balance 'SPA27M9NYFCSK0RA1Q31JFF67QSKMK8E7TN3XFK0) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u22) 'SP1BRKQ9KHWMZB4GEVMC9D43MX2MSPYFC33F8JGXK))
      (map-set token-count 'SP1BRKQ9KHWMZB4GEVMC9D43MX2MSPYFC33F8JGXK (+ (get-balance 'SP1BRKQ9KHWMZB4GEVMC9D43MX2MSPYFC33F8JGXK) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u23) 'SP3EMBR27FB397D81WW1P0ABJ4MEHJD09HKDH54V4))
      (map-set token-count 'SP3EMBR27FB397D81WW1P0ABJ4MEHJD09HKDH54V4 (+ (get-balance 'SP3EMBR27FB397D81WW1P0ABJ4MEHJD09HKDH54V4) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u24) 'SPFAP0BEVJNETW0YYZQVWBB4M1P5M03ZQ4T2A419))
      (map-set token-count 'SPFAP0BEVJNETW0YYZQVWBB4M1P5M03ZQ4T2A419 (+ (get-balance 'SPFAP0BEVJNETW0YYZQVWBB4M1P5M03ZQ4T2A419) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u25) 'SP2WYJ6SNTFRZ9ET9RNRBZQBAFP679003GPKMNJ6K))
      (map-set token-count 'SP2WYJ6SNTFRZ9ET9RNRBZQBAFP679003GPKMNJ6K (+ (get-balance 'SP2WYJ6SNTFRZ9ET9RNRBZQBAFP679003GPKMNJ6K) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u26) 'SP04G5YJPS4DZ8HEFVK378Q548ZXZ6VBTZ0R88Z1))
      (map-set token-count 'SP04G5YJPS4DZ8HEFVK378Q548ZXZ6VBTZ0R88Z1 (+ (get-balance 'SP04G5YJPS4DZ8HEFVK378Q548ZXZ6VBTZ0R88Z1) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u27) 'SPVVMAK8RPQT2HGCDMQYK4SWD5QF00PH4WC1YGNT))
      (map-set token-count 'SPVVMAK8RPQT2HGCDMQYK4SWD5QF00PH4WC1YGNT (+ (get-balance 'SPVVMAK8RPQT2HGCDMQYK4SWD5QF00PH4WC1YGNT) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u28) 'SP3EY4W9ZC37YT29FB4G804YAWMEGS0YKW0HTNEM6))
      (map-set token-count 'SP3EY4W9ZC37YT29FB4G804YAWMEGS0YKW0HTNEM6 (+ (get-balance 'SP3EY4W9ZC37YT29FB4G804YAWMEGS0YKW0HTNEM6) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u29) 'SP1BK7AHVB620HG3BPDVKEWDY268W0YEHAA8WS6CD))
      (map-set token-count 'SP1BK7AHVB620HG3BPDVKEWDY268W0YEHAA8WS6CD (+ (get-balance 'SP1BK7AHVB620HG3BPDVKEWDY268W0YEHAA8WS6CD) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u30) 'SP13KG9DDAH5VFZYMFBQW53AYK8QS92VXPKAFG3SD))
      (map-set token-count 'SP13KG9DDAH5VFZYMFBQW53AYK8QS92VXPKAFG3SD (+ (get-balance 'SP13KG9DDAH5VFZYMFBQW53AYK8QS92VXPKAFG3SD) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u31) 'SP2XWM96QSX694AC1A5WYMAJA1ZDQ7YJNWDYXXXCE))
      (map-set token-count 'SP2XWM96QSX694AC1A5WYMAJA1ZDQ7YJNWDYXXXCE (+ (get-balance 'SP2XWM96QSX694AC1A5WYMAJA1ZDQ7YJNWDYXXXCE) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u32) 'SP3DSX521TF4D6425B214D39TKYA8S2JS052E4YEQ))
      (map-set token-count 'SP3DSX521TF4D6425B214D39TKYA8S2JS052E4YEQ (+ (get-balance 'SP3DSX521TF4D6425B214D39TKYA8S2JS052E4YEQ) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u33) 'SPHPEBY5P6D6QY823KYW8NSBVRCVJ7PRHJEPKDR))
      (map-set token-count 'SPHPEBY5P6D6QY823KYW8NSBVRCVJ7PRHJEPKDR (+ (get-balance 'SPHPEBY5P6D6QY823KYW8NSBVRCVJ7PRHJEPKDR) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u34) 'SP24QVKB3136J6EB9PD7YA9JM40PSADGT2VYTJPW5))
      (map-set token-count 'SP24QVKB3136J6EB9PD7YA9JM40PSADGT2VYTJPW5 (+ (get-balance 'SP24QVKB3136J6EB9PD7YA9JM40PSADGT2VYTJPW5) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u35) 'SP1EMBZMJ2JFT83MPB4TTBC2WCZ9HCFF4EXZCHYXM))
      (map-set token-count 'SP1EMBZMJ2JFT83MPB4TTBC2WCZ9HCFF4EXZCHYXM (+ (get-balance 'SP1EMBZMJ2JFT83MPB4TTBC2WCZ9HCFF4EXZCHYXM) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u36) 'SP3K0JCZG75Q8VRPHT9BA83PJH8T2XYVPVJH6CP6B))
      (map-set token-count 'SP3K0JCZG75Q8VRPHT9BA83PJH8T2XYVPVJH6CP6B (+ (get-balance 'SP3K0JCZG75Q8VRPHT9BA83PJH8T2XYVPVJH6CP6B) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u37) 'SPJCGC35F74RRSPAEVTP6KVZFA7VQ6XJJ2QP430D))
      (map-set token-count 'SPJCGC35F74RRSPAEVTP6KVZFA7VQ6XJJ2QP430D (+ (get-balance 'SPJCGC35F74RRSPAEVTP6KVZFA7VQ6XJJ2QP430D) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u38) 'SP3MXS67JRWEHANXK4966YA6Q0V7BR2Y1Z96QWVJG))
      (map-set token-count 'SP3MXS67JRWEHANXK4966YA6Q0V7BR2Y1Z96QWVJG (+ (get-balance 'SP3MXS67JRWEHANXK4966YA6Q0V7BR2Y1Z96QWVJG) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u39) 'SP37X9QMKZ5GA6N9187EJPMZMCW6GSX8WBCT4BCWJ))
      (map-set token-count 'SP37X9QMKZ5GA6N9187EJPMZMCW6GSX8WBCT4BCWJ (+ (get-balance 'SP37X9QMKZ5GA6N9187EJPMZMCW6GSX8WBCT4BCWJ) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u40) 'SP2Q4S2NTCXNN8ZCQP84AT5TW68H65Y572SMD5HEQ))
      (map-set token-count 'SP2Q4S2NTCXNN8ZCQP84AT5TW68H65Y572SMD5HEQ (+ (get-balance 'SP2Q4S2NTCXNN8ZCQP84AT5TW68H65Y572SMD5HEQ) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u41) 'SP1GWAJ28QYTDWYBS17AVT432T3X9JW7MJFGEGZXQ))
      (map-set token-count 'SP1GWAJ28QYTDWYBS17AVT432T3X9JW7MJFGEGZXQ (+ (get-balance 'SP1GWAJ28QYTDWYBS17AVT432T3X9JW7MJFGEGZXQ) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u42) 'SP3H2MJQYDRYSXN45YAJKYXCQ5XN5YT2STHCGMSG5))
      (map-set token-count 'SP3H2MJQYDRYSXN45YAJKYXCQ5XN5YT2STHCGMSG5 (+ (get-balance 'SP3H2MJQYDRYSXN45YAJKYXCQ5XN5YT2STHCGMSG5) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u43) 'SP1M1P2E0SW10Z2HDYVHF4Q6WVZH9HQ849SSY4SD4))
      (map-set token-count 'SP1M1P2E0SW10Z2HDYVHF4Q6WVZH9HQ849SSY4SD4 (+ (get-balance 'SP1M1P2E0SW10Z2HDYVHF4Q6WVZH9HQ849SSY4SD4) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u44) 'SP2YZZB5QENGPQN879T9W9FATGYSG8TJ74VDX5ZBM))
      (map-set token-count 'SP2YZZB5QENGPQN879T9W9FATGYSG8TJ74VDX5ZBM (+ (get-balance 'SP2YZZB5QENGPQN879T9W9FATGYSG8TJ74VDX5ZBM) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u45) 'SP346R7RHS7WRSVA68GEWD5Z02CW657RGGSS7THRC))
      (map-set token-count 'SP346R7RHS7WRSVA68GEWD5Z02CW657RGGSS7THRC (+ (get-balance 'SP346R7RHS7WRSVA68GEWD5Z02CW657RGGSS7THRC) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u46) 'SP2P36Q7YSGDP5J2G0115MS7TXHBTZHR92EFD8HZ5))
      (map-set token-count 'SP2P36Q7YSGDP5J2G0115MS7TXHBTZHR92EFD8HZ5 (+ (get-balance 'SP2P36Q7YSGDP5J2G0115MS7TXHBTZHR92EFD8HZ5) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u47) 'SP2RN15RKBW87MZR36M1PEP6F70K1NZRSKE7ZTC1S))
      (map-set token-count 'SP2RN15RKBW87MZR36M1PEP6F70K1NZRSKE7ZTC1S (+ (get-balance 'SP2RN15RKBW87MZR36M1PEP6F70K1NZRSKE7ZTC1S) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u48) 'SP21HKBTVAGTFCJ50JW99K6BYA7JZZTZ57X410GX6))
      (map-set token-count 'SP21HKBTVAGTFCJ50JW99K6BYA7JZZTZ57X410GX6 (+ (get-balance 'SP21HKBTVAGTFCJ50JW99K6BYA7JZZTZ57X410GX6) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u49) 'SP28HZRZ2VCEAFZHD7QANEYA0FRPAXEKW31HJE84B))
      (map-set token-count 'SP28HZRZ2VCEAFZHD7QANEYA0FRPAXEKW31HJE84B (+ (get-balance 'SP28HZRZ2VCEAFZHD7QANEYA0FRPAXEKW31HJE84B) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u50) 'SPTD6Y00BWC3M3BFXGMG2KHSTDSMS7CW5143JJ5Z))
      (map-set token-count 'SPTD6Y00BWC3M3BFXGMG2KHSTDSMS7CW5143JJ5Z (+ (get-balance 'SPTD6Y00BWC3M3BFXGMG2KHSTDSMS7CW5143JJ5Z) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u51) 'SP1WH947JDWCRNKET31HHVGVACPZKP4R69NQ4JB83))
      (map-set token-count 'SP1WH947JDWCRNKET31HHVGVACPZKP4R69NQ4JB83 (+ (get-balance 'SP1WH947JDWCRNKET31HHVGVACPZKP4R69NQ4JB83) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u52) 'SP1T8RKYENXTBMSNQBE63PK75QP1B3FHABCA24Y3B))
      (map-set token-count 'SP1T8RKYENXTBMSNQBE63PK75QP1B3FHABCA24Y3B (+ (get-balance 'SP1T8RKYENXTBMSNQBE63PK75QP1B3FHABCA24Y3B) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u53) 'SP5R2FQ21G6VSY1WCZWB3DMCHST96W5K6ZDKN7MW))
      (map-set token-count 'SP5R2FQ21G6VSY1WCZWB3DMCHST96W5K6ZDKN7MW (+ (get-balance 'SP5R2FQ21G6VSY1WCZWB3DMCHST96W5K6ZDKN7MW) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u54) 'SP9W93ZBKA4CBMMKQ90DE3S2S9VP8TQRRNTHNMF2))
      (map-set token-count 'SP9W93ZBKA4CBMMKQ90DE3S2S9VP8TQRRNTHNMF2 (+ (get-balance 'SP9W93ZBKA4CBMMKQ90DE3S2S9VP8TQRRNTHNMF2) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u55) 'SP28B71MDGQYZ5MGPEV5BK15AFGGH601WE3QHZ214))
      (map-set token-count 'SP28B71MDGQYZ5MGPEV5BK15AFGGH601WE3QHZ214 (+ (get-balance 'SP28B71MDGQYZ5MGPEV5BK15AFGGH601WE3QHZ214) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u56) 'SP3DH7YMWFFM2VD7S8K99YBT9Q0MCAWTG45AWJX2F))
      (map-set token-count 'SP3DH7YMWFFM2VD7S8K99YBT9Q0MCAWTG45AWJX2F (+ (get-balance 'SP3DH7YMWFFM2VD7S8K99YBT9Q0MCAWTG45AWJX2F) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u57) 'SP37C0F0YD0KG0BKW8DR97AEGZNJT8JXV96Y01CEJ))
      (map-set token-count 'SP37C0F0YD0KG0BKW8DR97AEGZNJT8JXV96Y01CEJ (+ (get-balance 'SP37C0F0YD0KG0BKW8DR97AEGZNJT8JXV96Y01CEJ) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u58) 'SPP9N5QAGPY6JYF82N3Q78RVHKG8R3Q1A8D5G5CG))
      (map-set token-count 'SPP9N5QAGPY6JYF82N3Q78RVHKG8R3Q1A8D5G5CG (+ (get-balance 'SPP9N5QAGPY6JYF82N3Q78RVHKG8R3Q1A8D5G5CG) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u59) 'SP2ZVNZ2HSAJJ039SPMDAJZD1P681VFCMY4CEYYHK))
      (map-set token-count 'SP2ZVNZ2HSAJJ039SPMDAJZD1P681VFCMY4CEYYHK (+ (get-balance 'SP2ZVNZ2HSAJJ039SPMDAJZD1P681VFCMY4CEYYHK) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u60) 'SP3HKNNFQ71AV7W6FTRB9Z8W6JJ6J0ES14CEBQE9Q))
      (map-set token-count 'SP3HKNNFQ71AV7W6FTRB9Z8W6JJ6J0ES14CEBQE9Q (+ (get-balance 'SP3HKNNFQ71AV7W6FTRB9Z8W6JJ6J0ES14CEBQE9Q) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u61) 'SP26765Q4CYY0V0P9P1H9D9QGFKTZEVVEJ06JFBTB))
      (map-set token-count 'SP26765Q4CYY0V0P9P1H9D9QGFKTZEVVEJ06JFBTB (+ (get-balance 'SP26765Q4CYY0V0P9P1H9D9QGFKTZEVVEJ06JFBTB) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u62) 'SP3Y7G0EBEQNPAH2V7QEEGCW95S9PJR3E86R49FPT))
      (map-set token-count 'SP3Y7G0EBEQNPAH2V7QEEGCW95S9PJR3E86R49FPT (+ (get-balance 'SP3Y7G0EBEQNPAH2V7QEEGCW95S9PJR3E86R49FPT) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u63) 'SP1NVSTY9TJC17Z33C6TY0VAQ2T2TYCRNS4PHDN66))
      (map-set token-count 'SP1NVSTY9TJC17Z33C6TY0VAQ2T2TYCRNS4PHDN66 (+ (get-balance 'SP1NVSTY9TJC17Z33C6TY0VAQ2T2TYCRNS4PHDN66) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u64) 'SP25YPFN4HV6P19ZR49HX2J65QPEG7S677MXYJN6C))
      (map-set token-count 'SP25YPFN4HV6P19ZR49HX2J65QPEG7S677MXYJN6C (+ (get-balance 'SP25YPFN4HV6P19ZR49HX2J65QPEG7S677MXYJN6C) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u65) 'SP1H6WFT00P0F0Q996WP9TTADF8CWDA4GDYC110NH))
      (map-set token-count 'SP1H6WFT00P0F0Q996WP9TTADF8CWDA4GDYC110NH (+ (get-balance 'SP1H6WFT00P0F0Q996WP9TTADF8CWDA4GDYC110NH) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u66) 'SP21HKBTVAGTFCJ50JW99K6BYA7JZZTZ57X410GX6))
      (map-set token-count 'SP21HKBTVAGTFCJ50JW99K6BYA7JZZTZ57X410GX6 (+ (get-balance 'SP21HKBTVAGTFCJ50JW99K6BYA7JZZTZ57X410GX6) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u67) 'SP28HZRZ2VCEAFZHD7QANEYA0FRPAXEKW31HJE84B))
      (map-set token-count 'SP28HZRZ2VCEAFZHD7QANEYA0FRPAXEKW31HJE84B (+ (get-balance 'SP28HZRZ2VCEAFZHD7QANEYA0FRPAXEKW31HJE84B) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u68) 'SPTD6Y00BWC3M3BFXGMG2KHSTDSMS7CW5143JJ5Z))
      (map-set token-count 'SPTD6Y00BWC3M3BFXGMG2KHSTDSMS7CW5143JJ5Z (+ (get-balance 'SPTD6Y00BWC3M3BFXGMG2KHSTDSMS7CW5143JJ5Z) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u69) 'SP1WH947JDWCRNKET31HHVGVACPZKP4R69NQ4JB83))
      (map-set token-count 'SP1WH947JDWCRNKET31HHVGVACPZKP4R69NQ4JB83 (+ (get-balance 'SP1WH947JDWCRNKET31HHVGVACPZKP4R69NQ4JB83) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u70) 'SP1T8RKYENXTBMSNQBE63PK75QP1B3FHABCA24Y3B))
      (map-set token-count 'SP1T8RKYENXTBMSNQBE63PK75QP1B3FHABCA24Y3B (+ (get-balance 'SP1T8RKYENXTBMSNQBE63PK75QP1B3FHABCA24Y3B) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u71) 'SP5R2FQ21G6VSY1WCZWB3DMCHST96W5K6ZDKN7MW))
      (map-set token-count 'SP5R2FQ21G6VSY1WCZWB3DMCHST96W5K6ZDKN7MW (+ (get-balance 'SP5R2FQ21G6VSY1WCZWB3DMCHST96W5K6ZDKN7MW) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u72) 'SP9W93ZBKA4CBMMKQ90DE3S2S9VP8TQRRNTHNMF2))
      (map-set token-count 'SP9W93ZBKA4CBMMKQ90DE3S2S9VP8TQRRNTHNMF2 (+ (get-balance 'SP9W93ZBKA4CBMMKQ90DE3S2S9VP8TQRRNTHNMF2) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u73) 'SP28B71MDGQYZ5MGPEV5BK15AFGGH601WE3QHZ214))
      (map-set token-count 'SP28B71MDGQYZ5MGPEV5BK15AFGGH601WE3QHZ214 (+ (get-balance 'SP28B71MDGQYZ5MGPEV5BK15AFGGH601WE3QHZ214) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u74) 'SP3DH7YMWFFM2VD7S8K99YBT9Q0MCAWTG45AWJX2F))
      (map-set token-count 'SP3DH7YMWFFM2VD7S8K99YBT9Q0MCAWTG45AWJX2F (+ (get-balance 'SP3DH7YMWFFM2VD7S8K99YBT9Q0MCAWTG45AWJX2F) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u75) 'SP37C0F0YD0KG0BKW8DR97AEGZNJT8JXV96Y01CEJ))
      (map-set token-count 'SP37C0F0YD0KG0BKW8DR97AEGZNJT8JXV96Y01CEJ (+ (get-balance 'SP37C0F0YD0KG0BKW8DR97AEGZNJT8JXV96Y01CEJ) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u76) 'SPP9N5QAGPY6JYF82N3Q78RVHKG8R3Q1A8D5G5CG))
      (map-set token-count 'SPP9N5QAGPY6JYF82N3Q78RVHKG8R3Q1A8D5G5CG (+ (get-balance 'SPP9N5QAGPY6JYF82N3Q78RVHKG8R3Q1A8D5G5CG) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u77) 'SP2ZVNZ2HSAJJ039SPMDAJZD1P681VFCMY4CEYYHK))
      (map-set token-count 'SP2ZVNZ2HSAJJ039SPMDAJZD1P681VFCMY4CEYYHK (+ (get-balance 'SP2ZVNZ2HSAJJ039SPMDAJZD1P681VFCMY4CEYYHK) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u78) 'SP3HKNNFQ71AV7W6FTRB9Z8W6JJ6J0ES14CEBQE9Q))
      (map-set token-count 'SP3HKNNFQ71AV7W6FTRB9Z8W6JJ6J0ES14CEBQE9Q (+ (get-balance 'SP3HKNNFQ71AV7W6FTRB9Z8W6JJ6J0ES14CEBQE9Q) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u79) 'SP26765Q4CYY0V0P9P1H9D9QGFKTZEVVEJ06JFBTB))
      (map-set token-count 'SP26765Q4CYY0V0P9P1H9D9QGFKTZEVVEJ06JFBTB (+ (get-balance 'SP26765Q4CYY0V0P9P1H9D9QGFKTZEVVEJ06JFBTB) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u80) 'SP3Y7G0EBEQNPAH2V7QEEGCW95S9PJR3E86R49FPT))
      (map-set token-count 'SP3Y7G0EBEQNPAH2V7QEEGCW95S9PJR3E86R49FPT (+ (get-balance 'SP3Y7G0EBEQNPAH2V7QEEGCW95S9PJR3E86R49FPT) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u81) 'SP1NVSTY9TJC17Z33C6TY0VAQ2T2TYCRNS4PHDN66))
      (map-set token-count 'SP1NVSTY9TJC17Z33C6TY0VAQ2T2TYCRNS4PHDN66 (+ (get-balance 'SP1NVSTY9TJC17Z33C6TY0VAQ2T2TYCRNS4PHDN66) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u82) 'SP25YPFN4HV6P19ZR49HX2J65QPEG7S677MXYJN6C))
      (map-set token-count 'SP25YPFN4HV6P19ZR49HX2J65QPEG7S677MXYJN6C (+ (get-balance 'SP25YPFN4HV6P19ZR49HX2J65QPEG7S677MXYJN6C) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u83) 'SP1H6WFT00P0F0Q996WP9TTADF8CWDA4GDYC110NH))
      (map-set token-count 'SP1H6WFT00P0F0Q996WP9TTADF8CWDA4GDYC110NH (+ (get-balance 'SP1H6WFT00P0F0Q996WP9TTADF8CWDA4GDYC110NH) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u84) 'SP19HFE82PDH5VJFN7EEA836X032RN8ZMVTRVKMCS))
      (map-set token-count 'SP19HFE82PDH5VJFN7EEA836X032RN8ZMVTRVKMCS (+ (get-balance 'SP19HFE82PDH5VJFN7EEA836X032RN8ZMVTRVKMCS) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u85) 'SPKCREXHEM4AR3VWGDGC46B6D3KM19P4P11STBZ6))
      (map-set token-count 'SPKCREXHEM4AR3VWGDGC46B6D3KM19P4P11STBZ6 (+ (get-balance 'SPKCREXHEM4AR3VWGDGC46B6D3KM19P4P11STBZ6) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u86) 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X))
      (map-set token-count 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X (+ (get-balance 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u87) 'SPNP43EXMF21YN3DGA1M8VGTTTQZ3R55ZWXBKYVH))
      (map-set token-count 'SPNP43EXMF21YN3DGA1M8VGTTTQZ3R55ZWXBKYVH (+ (get-balance 'SPNP43EXMF21YN3DGA1M8VGTTTQZ3R55ZWXBKYVH) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u88) 'SP2NPKFW6VHPFV1VRXSHMBC6P0J2ZAY0WX4NSNQY7))
      (map-set token-count 'SP2NPKFW6VHPFV1VRXSHMBC6P0J2ZAY0WX4NSNQY7 (+ (get-balance 'SP2NPKFW6VHPFV1VRXSHMBC6P0J2ZAY0WX4NSNQY7) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u89) 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X))
      (map-set token-count 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X (+ (get-balance 'SP26DDNEFCCGBS5GKJR8J714C44W0Y9TSSBY7448X) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u90) 'SP21HKBTVAGTFCJ50JW99K6BYA7JZZTZ57X410GX6))
      (map-set token-count 'SP21HKBTVAGTFCJ50JW99K6BYA7JZZTZ57X410GX6 (+ (get-balance 'SP21HKBTVAGTFCJ50JW99K6BYA7JZZTZ57X410GX6) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u91) 'SP28HZRZ2VCEAFZHD7QANEYA0FRPAXEKW31HJE84B))
      (map-set token-count 'SP28HZRZ2VCEAFZHD7QANEYA0FRPAXEKW31HJE84B (+ (get-balance 'SP28HZRZ2VCEAFZHD7QANEYA0FRPAXEKW31HJE84B) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u92) 'SPTD6Y00BWC3M3BFXGMG2KHSTDSMS7CW5143JJ5Z))
      (map-set token-count 'SPTD6Y00BWC3M3BFXGMG2KHSTDSMS7CW5143JJ5Z (+ (get-balance 'SPTD6Y00BWC3M3BFXGMG2KHSTDSMS7CW5143JJ5Z) u1))
      (try! (nft-mint? wbsr (+ last-nft-id u93) 'SP1WH947JDWCRNKET31HHVGVACPZKP4R69NQ4JB83))
      (map-set token-count 'SP1WH947JDWCRNKET31HHVGVACPZKP4R69NQ4JB83 (+ (get-balance 'SP1WH947JDWCRNKET31HHVGVACPZKP4R69NQ4JB83) u1))

      (var-set last-id (+ last-nft-id u94))
      (var-set airdrop-called true)
      (ok true))))