Skip to content

Commit

Permalink
Improve Romeo Asset Token Contract (#112)
Browse files Browse the repository at this point in the history
* updated supply, removed unnecessary optional & updated asset-tokenfile

* uploaded json to ipfs & updated token uri accordingly

* updated image uri & json uri

* updated supply total to be in sats

* updated json w/ sip18 data

* git catch-up update

* updated test url

---------

Co-authored-by: José I. O <[email protected]>
  • Loading branch information
setzeus and jio-gl authored Sep 12, 2023
1 parent 82f71aa commit 9567acd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Binary file added .DS_Store
Binary file not shown.
7 changes: 4 additions & 3 deletions romeo/asset-contract/contracts/asset.clar
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
;; Requests for minting and burning are made by the contract owner.

;; token definitions
;;
(define-fungible-token sbtc u21000000000000)
;; 100 M sats = 1 sBTC
;; 21 M sBTC supply = 2.1 Q sats total
(define-fungible-token sbtc u2100000000000000)

;; constants
;;
Expand Down Expand Up @@ -111,7 +112,7 @@
)

(define-read-only (get-token-uri)
(ok (some u"https://assets.stacks.co/sbtc.pdf"))
(ok (some u"https://gateway.pinata.cloud/ipfs/Qma5P7LFGQAXt7gzkNZGxet5qJcVxgeXsenDXwu9y45hpr?_gl=1*1mxodt*_ga*OTU1OTQzMjE2LjE2OTQwMzk2MjM.*_ga_5RMPXG14TE*MTY5NDA4MzA3OC40LjEuMTY5NDA4MzQzOC42MC4wLjA"))
)

;; private functions
Expand Down
8 changes: 8 additions & 0 deletions romeo/asset-token.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "sBTC Romeo Token",
"description": "sBTC Romeo is a developer release of the sBTC (decentralized two-way peg) stable token, which is pegged to the price of BTC.",
"image": "https://gateway.pinata.cloud/ipfs/QmZF4DCgVzuhSTAjyx33fG4M5sKWT3zomzXX8Cfzkiqsth?_gl=1*1f4aw3i*_ga*OTU1OTQzMjE2LjE2OTQwMzk2MjM.*_ga_5RMPXG14TE*MTY5NDA0NTI0Ni4yLjAuMTY5NDA0NTI0Ni42MC4wLjA",
"sip": 16,
"decimals": 8,
"symbol": "sBTC"
}

0 comments on commit 9567acd

Please sign in to comment.