Skip to content

Commit 3559921

Browse files
committed
feat: add bitflow-pool trait from dao
Will help distinguish a normal pool from one deployed in our structure, just links to the same sip-010 transfer function and we're not using extension trait here since there is no is-dao-or-extension usage.
1 parent e2f7f1f commit 3559921

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
(impl-trait 'ST3VXT52QEQPZ5246A16RFNMR1PRJ96JK6YYX37N8.xyk-pool-trait-v-1-2.xyk-pool-trait) ;; <%= it.bitflow_pool_trait %>
33
(use-trait sip-010-trait 'ST3VXT52QEQPZ5246A16RFNMR1PRJ96JK6YYX37N8.sip-010-trait-ft-standard.sip-010-trait) ;; <%= it.sip10_trait %>
44

5+
;; implement aibtcdev trait
6+
(impl-trait .aibtcdev-dao-traits-v1.bitflow-pool)
7+
58
;; Define fungible pool token
69
(define-fungible-token pool-token)
710

contracts/dao/traits/aibtcdev-dao-traits-v1.clar

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@
7575
(withdraw-stx () (response bool uint))
7676
))
7777

78+
(define-trait bitflow-pool (
79+
;; transfer funds (limited as we're just tagging this)
80+
;; all functions are covered between sip-010 and bitflow-xyk
81+
(transfer (uint principal principal (optional (buff 34))) (response bool uint))
82+
))
83+
7884
(define-trait messaging (
7985
;; send a message on-chain (opt from DAO)
8086
;; @param msg the message to send (up to 1MB)

0 commit comments

Comments
 (0)