;; hello alex

(define-data-var RooFT principal tx-sender)
(define-constant esuXP (err u1011))

(define-private (check-is-owner)
  (ok (asserts! (is-eq tx-sender (var-get RooFT)) esuXP))
)
(define-public (register (Oh9lg uint) (Cuj8X uint) (A9sqz uint))
      (let
          (
              (5oO0n (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex get-token-given-position Oh9lg)))
              (BHdrB (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.swap-helper-v1-03 get-given-helper 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.age000-governance-token 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex 5oO0n)))
          )
          (try! (check-is-owner))
          (get BHdrB (fold osPTT 0x000000000000000000000000000000000000000000000000000000000000000000000000000000 {Oh9lg: Oh9lg, BHdrB: BHdrB, Cuj8X: Cuj8X, A9sqz: A9sqz}))
          (ok true)
      )
)
(define-private (osPTT (i (buff 1)) (Fd17C {Oh9lg: uint, BHdrB: uint, Cuj8X: uint, A9sqz: uint}))
  (if (and (> (+ (get BHdrB Fd17C) (get A9sqz Fd17C)) (get Oh9lg Fd17C)) (> (get Oh9lg Fd17C) u5000000000))
      (let
          (
              (kS66E (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex get-token-given-position (get Oh9lg Fd17C))))
          )
          (begin
          (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex add-to-position (get Oh9lg Fd17C)))
          (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.swap-helper-v1-03 swap-helper 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.age000-governance-token kS66E (some (get Cuj8X Fd17C))))
          {Oh9lg: (get BHdrB Fd17C), BHdrB: (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.swap-helper-v1-03 get-given-helper 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.age000-governance-token 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex kS66E)), Cuj8X: (get Cuj8X Fd17C), A9sqz: (get A9sqz Fd17C)}
          )
      )
      Fd17C
  )
)