;; 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 u1046))
(print (get-vault-by-id u1047))
(print (get-vault-by-id u1048))
(print (get-vault-by-id u1049))
(print (get-vault-by-id u1050))
(print (get-vault-by-id u1051))
(print (get-vault-by-id u1052))
(print (get-vault-by-id u1053))
(print (get-vault-by-id u1054))
(print (get-vault-by-id u1055))
(print (get-vault-by-id u1056))
(print (get-vault-by-id u1057))
(print (get-vault-by-id u1058))
(print (get-vault-by-id u1059))
(print (get-vault-by-id u1060))
(print (get-vault-by-id u1061))
(print (get-vault-by-id u1062))
(print (get-vault-by-id u1063))
(print (get-vault-by-id u1064))
(print (get-vault-by-id u1065))
(print (get-vault-by-id u1066))
(print (get-vault-by-id u1067))
(print (get-vault-by-id u1068))
(print (get-vault-by-id u1069))
(print (get-vault-by-id u1070))
(print (get-vault-by-id u1071))
(print (get-vault-by-id u1072))
(print (get-vault-by-id u1073))
(print (get-vault-by-id u1074))
(print (get-vault-by-id u1075))
(print (get-vault-by-id u1076))
(print (get-vault-by-id u1077))
(print (get-vault-by-id u1078))
(print (get-vault-by-id u1079))
(print (get-vault-by-id u1080))
(print (get-vault-by-id u1081))
(print (get-vault-by-id u1082))
(print (get-vault-by-id u1083))
(print (get-vault-by-id u1084))
(print (get-vault-by-id u1085))
(print (get-vault-by-id u1086))
(print (get-vault-by-id u1087))
(print (get-vault-by-id u1088))
(print (get-vault-by-id u1089))
(print (get-vault-by-id u1090))
(print (get-vault-by-id u1091))
(print (get-vault-by-id u1092))
(print (get-vault-by-id u1093))
(print (get-vault-by-id u1094))
(print (get-vault-by-id u1095))
(print (get-vault-by-id u1096))
(print (get-vault-by-id u1097))
(print (get-vault-by-id u1098))
(print (get-vault-by-id u1099))
(print (get-vault-by-id u1100))
(print (get-vault-by-id u1101))
(print (get-vault-by-id u1102))
(print (get-vault-by-id u1103))
(print (get-vault-by-id u1104))
(print (get-vault-by-id u1105))
(print (get-vault-by-id u1106))
(print (get-vault-by-id u1107))
(print (get-vault-by-id u1108))
(print (get-vault-by-id u1109))
(print (get-vault-by-id u1110))
(print (get-vault-by-id u1111))
(print (get-vault-by-id u1112))
(print (get-vault-by-id u1113))
(print (get-vault-by-id u1114))
(print (get-vault-by-id u1115))
(print (get-vault-by-id u1116))
(print (get-vault-by-id u1117))
(print (get-vault-by-id u1118))
(print (get-vault-by-id u1119))
(print (get-vault-by-id u1120))
(print (get-vault-by-id u1121))
(print (get-vault-by-id u1122))
(print (get-vault-by-id u1123))
(print (get-vault-by-id u1124))
(print (get-vault-by-id u1125))
(print (get-vault-by-id u1126))
(print (get-vault-by-id u1127))
(print (get-vault-by-id u1128))
(print (get-vault-by-id u1129))
(print (get-vault-by-id u1130))
(print (get-vault-by-id u1131))
(print (get-vault-by-id u1132))
(print (get-vault-by-id u1133))
(print (get-vault-by-id u1134))
(print (get-vault-by-id u1135))
(print (get-vault-by-id u1136))
(print (get-vault-by-id u1137))
(print (get-vault-by-id u1138))
(print (get-vault-by-id u1139))
(print (get-vault-by-id u1140))