Skip to content

Commit

Permalink
feat: add proposal for DIKO buybacks (#600)
Browse files Browse the repository at this point in the history
* feat: add proposal for DIKO buybacks

* space

* gov vote

* wip

---------

Co-authored-by: --global <--global>
  • Loading branch information
philiphacks authored Dec 9, 2024
1 parent a05d62e commit 6dff783
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
5 changes: 5 additions & 0 deletions clarity/Clarinet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ path = "contracts/arkadiko-diko-init-v2-1.clar"
clarity_version = 2
epoch = 2.4

[contracts.arkadiko-diko-incinerator-v1]
path = "contracts/arkadiko-diko-incinerator-v1.clar"
clarity_version = 2
epoch = 2.4

# ----------------------------------------------------
# Tokens
# ----------------------------------------------------
Expand Down
12 changes: 12 additions & 0 deletions clarity/contracts/aip-26-arkadiko-buybacks.clar
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
;; A governance vote to decide the following has been put in place:
;; DIKO buybacks & burns

;; Weekly DIKO buybacks of up to $10k/week (using protocol revenue denominated in xBTC, stSTX, STX, USDA or equivalent)
;; The DIKO tokens can be burned based on X activity.
;; Each tweet with the #moonDIKO hashtag will burn 100 DIKO, with a maximum burn of what is bought in that week.
;; These buybacks & burns will happen at random intervals
;; All protocol revenue is received by the following contract: SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR.arkadiko-vaults-pool-fees-v1-1.
;; Revenue comes from redemptions and stability fees

;; Vote FOR if you agree
;; Vote AGAINST if you disagree
9 changes: 9 additions & 0 deletions clarity/contracts/arkadiko-diko-incinerator-v1.clar
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
;; @contract DIKO Incinerator - Tokens to be burned from buybacks
;; @version 1

(define-public (burn (amount uint))
(begin
(try! (contract-call? .arkadiko-dao burn-token .arkadiko-token amount tx-sender))
(ok true)
)
)
10 changes: 5 additions & 5 deletions scripts/v2/governance-stability-fees.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ async function transact() {
functionName: 'propose',
functionArgs: [
tx.contractPrincipalCV(CONTRACT_ADDRESS, 'arkadiko-stake-pool-diko-v2-1'),
tx.uintCV(843680),
tx.uintCV(872050),
tx.uintCV(720),
tx.stringUtf8CV('AIP 21b - Stability Fee Decrease'),
tx.stringUtf8CV('https://github.com/arkadiko-dao/arkadiko/pull/590'),
tx.stringUtf8CV('AIP 26 - Arkadiko buybacks'),
tx.stringUtf8CV('https://github.com/arkadiko-dao/arkadiko/pull/600'),
tx.listCV([
tx.tupleCV({
'name': tx.stringAsciiCV("aip-21-b-stability-fees"),
'name': tx.stringAsciiCV("aip-26-diko-buybacks"),
'address': tx.standardPrincipalCV("SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR"),
'qualified-name': tx.contractPrincipalCV("SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR", "aip-21-stability-fees"),
'qualified-name': tx.contractPrincipalCV("SP2C2YFP12AJZB4MABJBAJ55XECVS7E4PMMZ89YZR", "aip-26-arkadiko-buybacks"),
'can-mint': tx.falseCV(),
'can-burn': tx.falseCV()
}),
Expand Down

0 comments on commit 6dff783

Please sign in to comment.