Skip to content

Commit

Permalink
Specify trust monitor actions for fungible mint/burn
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Dec 8, 2023
1 parent de59235 commit 3ff40d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions convex-core/src/main/cvx/convex/fungible.cvx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
(defn burn
^{:callable? true}
[amount]
(when-not (trust/trusted? minter *caller*)
(when-not (trust/trusted? minter *caller* :burn)
(fail :TRUST "No rights to burn"))
(let [amount (int amount)
bal (balance *caller*)]
Expand All @@ -60,7 +60,7 @@
(defn mint
^{:callable? true}
[amount]
(when-not (trust/trusted? minter *caller*)
(when-not (trust/trusted? minter *caller* :mint)
(fail :TRUST "No rights to mint"))
(let [amount (int amount)
new-supply (+ supply amount)
Expand Down

0 comments on commit 3ff40d3

Please sign in to comment.