;; 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 u286))
(print (get-vault-by-id u287))
(print (get-vault-by-id u288))
(print (get-vault-by-id u289))
(print (get-vault-by-id u290))
(print (get-vault-by-id u291))
(print (get-vault-by-id u292))
(print (get-vault-by-id u293))
(print (get-vault-by-id u294))
(print (get-vault-by-id u295))
(print (get-vault-by-id u296))
(print (get-vault-by-id u297))
(print (get-vault-by-id u298))
(print (get-vault-by-id u299))
(print (get-vault-by-id u300))
(print (get-vault-by-id u301))
(print (get-vault-by-id u302))
(print (get-vault-by-id u303))
(print (get-vault-by-id u304))
(print (get-vault-by-id u305))
(print (get-vault-by-id u306))
(print (get-vault-by-id u307))
(print (get-vault-by-id u308))
(print (get-vault-by-id u309))
(print (get-vault-by-id u310))
(print (get-vault-by-id u311))
(print (get-vault-by-id u312))
(print (get-vault-by-id u313))
(print (get-vault-by-id u314))
(print (get-vault-by-id u315))
(print (get-vault-by-id u316))
(print (get-vault-by-id u317))
(print (get-vault-by-id u318))
(print (get-vault-by-id u319))
(print (get-vault-by-id u320))
(print (get-vault-by-id u321))
(print (get-vault-by-id u322))
(print (get-vault-by-id u323))
(print (get-vault-by-id u324))
(print (get-vault-by-id u325))
(print (get-vault-by-id u326))
(print (get-vault-by-id u327))
(print (get-vault-by-id u328))
(print (get-vault-by-id u329))
(print (get-vault-by-id u330))
(print (get-vault-by-id u331))
(print (get-vault-by-id u332))
(print (get-vault-by-id u333))
(print (get-vault-by-id u334))
(print (get-vault-by-id u335))
(print (get-vault-by-id u336))
(print (get-vault-by-id u337))
(print (get-vault-by-id u338))
(print (get-vault-by-id u339))
(print (get-vault-by-id u340))
(print (get-vault-by-id u341))
(print (get-vault-by-id u342))
(print (get-vault-by-id u343))
(print (get-vault-by-id u344))
(print (get-vault-by-id u345))
(print (get-vault-by-id u346))
(print (get-vault-by-id u347))
(print (get-vault-by-id u348))
(print (get-vault-by-id u349))
(print (get-vault-by-id u350))
(print (get-vault-by-id u351))
(print (get-vault-by-id u352))
(print (get-vault-by-id u353))
(print (get-vault-by-id u354))
(print (get-vault-by-id u355))
(print (get-vault-by-id u356))
(print (get-vault-by-id u357))
(print (get-vault-by-id u358))
(print (get-vault-by-id u359))
(print (get-vault-by-id u360))
(print (get-vault-by-id u361))
(print (get-vault-by-id u362))
(print (get-vault-by-id u363))
(print (get-vault-by-id u364))
(print (get-vault-by-id u365))
(print (get-vault-by-id u366))
(print (get-vault-by-id u367))
(print (get-vault-by-id u368))
(print (get-vault-by-id u369))
(print (get-vault-by-id u370))
(print (get-vault-by-id u371))
(print (get-vault-by-id u372))
(print (get-vault-by-id u373))
(print (get-vault-by-id u374))
(print (get-vault-by-id u375))
(print (get-vault-by-id u376))
(print (get-vault-by-id u377))
(print (get-vault-by-id u378))
(print (get-vault-by-id u379))
(print (get-vault-by-id u380))