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 64dad86 commit 4b225ceCopy full SHA for 4b225ce
contracts/dao/extensions/aibtc-token.clar
@@ -113,4 +113,8 @@
113
(try! (ft-mint? SYMBOL (/ (* MAXSUPPLY u20) u100) .aibtc-token-dex)) ;; <%= it.token_symbol %> <%= it.dex_contract %>
114
;; mint tokens to the treasury (80%)
115
(try! (ft-mint? SYMBOL (/ (* MAXSUPPLY u80) u100) .aibtc-treasury)) ;; <%= it.token_symbol %> <%= it.treasury_contract %>
116
+)
117
+;; Total supply - tokens in treasury - tokens in dex
118
+(define-read-only (get-liquid-supply)
119
+ (- (ft-get-supply SYMBOL) (ft-get-balance SYMBOL .aibtc-treasury) (ft-get-balance SYMBOL .aibtc-token-dex))
120
)
0 commit comments