We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd8af2c commit 91b41b2Copy full SHA for 91b41b2
contracts/dao/extensions/aibtc-action-proposals.clar
@@ -238,6 +238,17 @@
238
;; read only functions
239
;;
240
241
+(define-read-only (get-voting-power (who principal) (proposalId uint))
242
+ (let
243
+ (
244
+ (proposalRecord (unwrap! (map-get? Proposals proposalId) ERR_PROPOSAL_NOT_FOUND))
245
+ (proposalBlockHash (unwrap! (get-block-hash (get startBlock proposalRecord)) ERR_RETRIEVING_START_BLOCK_HASH))
246
+ )
247
+ (at-block proposalBlockHash (contract-call? .aibtc-token get-balance who))
248
249
+)
250
+
251
252
(define-read-only (get-protocol-treasury)
253
(if (is-eq (var-get protocolTreasury) SELF)
254
none
0 commit comments