;; constants
(define-constant ERR-NOT-AUTHORIZED u401)
(define-constant CONTRACT-OWNER tx-sender)

;;(define-data-var holders (string-ascii 256) "hi")


;;;;;;;;;;;;;;

(define-read-only (get-vault-by-id (vault-id uint))
  (contract-call? 'SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR.arkadiko-vault-data-v1-1 get-vault-by-id vault-id)
)


(define-read-only (get-debt-for-vault (vault-id uint))
  (let ((vault (get-vault-by-id vault-id))) (ok (get debt vault)))
)

(print (get-vault-by-id u761))
(print (get-vault-by-id u762))
(print (get-vault-by-id u763))
(print (get-vault-by-id u764))
(print (get-vault-by-id u765))
(print (get-vault-by-id u766))
(print (get-vault-by-id u767))
(print (get-vault-by-id u768))
(print (get-vault-by-id u769))
(print (get-vault-by-id u770))
(print (get-vault-by-id u771))
(print (get-vault-by-id u772))
(print (get-vault-by-id u773))
(print (get-vault-by-id u774))
(print (get-vault-by-id u775))
(print (get-vault-by-id u776))
(print (get-vault-by-id u777))
(print (get-vault-by-id u778))
(print (get-vault-by-id u779))
(print (get-vault-by-id u780))
(print (get-vault-by-id u781))
(print (get-vault-by-id u782))
(print (get-vault-by-id u783))
(print (get-vault-by-id u784))
(print (get-vault-by-id u785))
(print (get-vault-by-id u786))
(print (get-vault-by-id u787))
(print (get-vault-by-id u788))
(print (get-vault-by-id u789))
(print (get-vault-by-id u790))
(print (get-vault-by-id u791))
(print (get-vault-by-id u792))
(print (get-vault-by-id u793))
(print (get-vault-by-id u794))
(print (get-vault-by-id u795))
(print (get-vault-by-id u796))
(print (get-vault-by-id u797))
(print (get-vault-by-id u798))
(print (get-vault-by-id u799))
(print (get-vault-by-id u800))
(print (get-vault-by-id u801))
(print (get-vault-by-id u802))
(print (get-vault-by-id u803))
(print (get-vault-by-id u804))
(print (get-vault-by-id u805))
(print (get-vault-by-id u806))
(print (get-vault-by-id u807))
(print (get-vault-by-id u808))
(print (get-vault-by-id u809))
(print (get-vault-by-id u810))
(print (get-vault-by-id u811))
(print (get-vault-by-id u812))
(print (get-vault-by-id u813))
(print (get-vault-by-id u814))
(print (get-vault-by-id u815))
(print (get-vault-by-id u816))
(print (get-vault-by-id u817))
(print (get-vault-by-id u818))
(print (get-vault-by-id u819))
(print (get-vault-by-id u820))
(print (get-vault-by-id u821))
(print (get-vault-by-id u822))
(print (get-vault-by-id u823))
(print (get-vault-by-id u824))
(print (get-vault-by-id u825))
(print (get-vault-by-id u826))
(print (get-vault-by-id u827))
(print (get-vault-by-id u828))
(print (get-vault-by-id u829))
(print (get-vault-by-id u830))
(print (get-vault-by-id u831))
(print (get-vault-by-id u832))
(print (get-vault-by-id u833))
(print (get-vault-by-id u834))
(print (get-vault-by-id u835))
(print (get-vault-by-id u836))
(print (get-vault-by-id u837))
(print (get-vault-by-id u838))
(print (get-vault-by-id u839))
(print (get-vault-by-id u840))
(print (get-vault-by-id u841))
(print (get-vault-by-id u842))
(print (get-vault-by-id u843))
(print (get-vault-by-id u844))
(print (get-vault-by-id u845))
(print (get-vault-by-id u846))
(print (get-vault-by-id u847))
(print (get-vault-by-id u848))
(print (get-vault-by-id u849))
(print (get-vault-by-id u850))
(print (get-vault-by-id u851))
(print (get-vault-by-id u852))
(print (get-vault-by-id u853))
(print (get-vault-by-id u854))
(print (get-vault-by-id u855))