Skip to content

Commit 248545a

Browse files
committed
fix: small updates to pass clarinet check
Using all testnet values for now, anything imported can be referenced as a requirement in Clarinet.toml
1 parent b5ba51e commit 248545a

File tree

5 files changed

+9
-191
lines changed

5 files changed

+9
-191
lines changed

Clarinet.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ contract_id = 'SP2PABAF9FTAJYNFZH93XENAJ8FVY99RRM50D2JG9.nft-trait'
2222
[[project.requirements]]
2323
contract_id = 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-010-trait-ft-standard'
2424

25+
[[project.requirements]]
26+
contract_id = 'ST3VXT52QEQPZ5246A16RFNMR1PRJ96JK6YYX37N8.sip-010-trait-ft-standard'
27+
2528
[[project.requirements]]
2629
contract_id = 'ST000000000000000000002AMW42H.pox-4'
2730

contracts/dao/extensions/aibtc-ext007-token.clar

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
(define-constant ERR-NOT-ENOUGH-FUND u101)
1414

1515
;; Constants
16-
(define-constant MAXSUPPLY u0) ;; <%= it.token_max_supply %>
16+
(define-constant MAXSUPPLY u21000000) ;; <%= it.token_max_supply %>
1717

1818
;; Variables
1919
(define-fungible-token SYMBOL MAXSUPPLY) ;; <%= it.token_symbol %>
@@ -57,7 +57,7 @@
5757
(ok "SYMBOL") ;; <%= it.token_symbol %>
5858
)
5959
(define-read-only (get-decimals)
60-
(ok u0) ;; <%= it.token_decimals %>
60+
(ok u6) ;; <%= it.token_decimals %>
6161
)
6262
(define-read-only (get-total-supply)
6363
(ok (ft-get-supply SYMBOL)) ;; <%= it.token_symbol %>
@@ -107,7 +107,7 @@
107107

108108
(begin
109109
;; Define the total supply
110-
(let ((total-supply u0)) ;; <%= it.token_max_supply %>
110+
(let ((total-supply u21000000)) ;; <%= it.token_max_supply %>
111111

112112
;; Calculate 40% and 60% of the total supply using inline division
113113
(let ((dex-allocation (/ (* total-supply u40) u100)) ;; Inline division for 40%

contracts/dao/extensions/aibtc-ext008-dex.clar

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
(define-constant BUY-INFO-ERROR (err u2001))
2020
(define-constant SELL-INFO-ERROR (err u2002))
2121

22-
(define-constant token-supply u0) ;; <%= it.token_max_supply %> match with the token's supply (6 decimals)
22+
(define-constant token-supply u21000000) ;; <%= it.token_max_supply %> match with the token's supply (6 decimals)
2323
(define-constant BONDING-DEX-ADDRESS (as-contract tx-sender)) ;; one contract per token
2424

2525
;; bonding curve config
@@ -88,7 +88,7 @@
8888
;; <%= it.pool_contract %>
8989
;; <%= it.bitflow_stx_token_address %>
9090
;; <%= it.bitflow_fee_address %>
91-
(try! (as-contract (contract-call? 'ST295MNE41DC74QYCPRS8N37YYMC06N6Q3VQDZ6G1.xyk-core-v-1-2 create-pool .aibtcdev-ext009-bitflow-pool 'ST295MNE41DC74QYCPRS8N37YYMC06N6Q3VQDZ6G1.token-stx-v-1-2 token-trait remain-stx remain-tokens xyk-burn-amount u10 u40 u10 u40 'ST295MNE41DC74QYCPRS8N37YYMC06N6Q3VQDZ6G1 xyk-pool-uri true)))
91+
(try! (as-contract (contract-call? 'ST295MNE41DC74QYCPRS8N37YYMC06N6Q3VQDZ6G1.xyk-core-v-1-2 create-pool .aibtc-ext009-bitflow-pool 'ST295MNE41DC74QYCPRS8N37YYMC06N6Q3VQDZ6G1.token-stx-v-1-2 token-trait remain-stx remain-tokens xyk-burn-amount u10 u40 u10 u40 'ST295MNE41DC74QYCPRS8N37YYMC06N6Q3VQDZ6G1 xyk-pool-uri true)))
9292
;; send fee
9393
(try! (as-contract (stx-transfer? COMPLETE_FEE tx-sender STX_CITY_COMPLETE_FEE_WALLET)))
9494
;; update global variables

contracts/dao/extensions/aibtc-ext009-bitflow-pool.clar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;; Implement XYK pool trait and use SIP 010 trait
22
(impl-trait 'ST3VXT52QEQPZ5246A16RFNMR1PRJ96JK6YYX37N8.xyk-pool-trait-v-1-2.xyk-pool-trait) ;; <%= it.bitflow_pool_trait %>
3-
(use-trait sip-010-trait 'SP3FBR2AGK5H9QBDH3EEN6DF8EK8JY7RX8QJ5SVTE.sip-010-trait-ft-standard.sip-010-trait) ;; <%= it.sip10_trait %>
3+
(use-trait sip-010-trait 'ST3VXT52QEQPZ5246A16RFNMR1PRJ96JK6YYX37N8.sip-010-trait-ft-standard.sip-010-trait) ;; <%= it.sip10_trait %>
44

55
;; Define fungible pool token
66
(define-fungible-token pool-token)

deployments/default.simnet-plan.yaml

Lines changed: 0 additions & 185 deletions
This file was deleted.

0 commit comments

Comments
 (0)