From 3ff40d3587f63bb7b0bf8141430b521759cfa49e Mon Sep 17 00:00:00 2001 From: mikera Date: Fri, 8 Dec 2023 03:04:47 +0000 Subject: [PATCH] Specify trust monitor actions for fungible mint/burn --- convex-core/src/main/cvx/convex/fungible.cvx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convex-core/src/main/cvx/convex/fungible.cvx b/convex-core/src/main/cvx/convex/fungible.cvx index a8c7c5a61..0857d7f29 100644 --- a/convex-core/src/main/cvx/convex/fungible.cvx +++ b/convex-core/src/main/cvx/convex/fungible.cvx @@ -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*)] @@ -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)