;; hello alex 
(define-data-var rgc17 principal tx-sender) (define-constant mAfDw (err u1377)) (define-private (check-is-owner) (ok (asserts! (is-eq tx-sender (var-get rgc17)) mAfDw)) ) (define-public (start-6oNkx (Ai1pO uint) (ie6RH uint) (4DW4c uint)) (let ( (zwU56 (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex get-token-given-position Ai1pO))) (pe4PD (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.swap-helper-v1-03 get-given-helper 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.age000-governance-token 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex zwU56))) ) (try! (check-is-owner)) (print pe4PD) (print Ai1pO) (get pe4PD (fold 6oNkx 0x000000000000000000000000000000000000000000000000000000000000000000000000000000 {Ai1pO: Ai1pO, pe4PD: pe4PD, ie6RH: ie6RH, 4DW4c: 4DW4c})) (print pe4PD) (ok true) ) ) (define-private (6oNkx (i (buff 1)) (G8w6s {Ai1pO: uint, pe4PD: uint, ie6RH: uint, 4DW4c: uint})) (if (and (> (+ (get pe4PD G8w6s) (get 4DW4c G8w6s)) (get Ai1pO G8w6s)) (> (get Ai1pO G8w6s) u3000000000)) (let ( (9ebM9 (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex get-token-given-position (get Ai1pO G8w6s)))) ) (begin (print "a") (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex add-to-position (get Ai1pO G8w6s))) (print "b") (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.swap-helper-v1-03 swap-helper 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.age000-governance-token 9ebM9 (some (get ie6RH G8w6s)))) (print G8w6s) {Ai1pO: (get pe4PD G8w6s), pe4PD: (unwrap-panic (contract-call? 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.swap-helper-v1-03 get-given-helper 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.age000-governance-token 'SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.auto-alex 9ebM9)), ie6RH: (get ie6RH G8w6s), 4DW4c: (get 4DW4c G8w6s)} ) ) G8w6s ) ) 