*█@&●╳%*▓□╱%◆@$*◆◇█@▓╳◆█^▓%▓^~!░□▓░╲%░^?○*╱*■○●^▓■╱▫~#╲○◇*!◆!█*○
Transaction ID
Execution Fee
0.00000899 FLOWExecution Error
pre-condition failed: FungibleToken.Vault.withdraw: Cannot withdraw tokens! The amount requested to be withdrawn (7735.00000000) is greater than the balance of the Vault (5286.18655840).
219 //17 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
220 //17 ?? panic("Could not borrow reference to the owner's Vault!")
221 //17 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
222 //17 minterReceiverRef.deposit(from: <-sentVault)
223 //17 }
224
225 //18 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
226 //18 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
227 //18 ?? panic("Could not borrow reference to the owner's Vault!")
228 //18 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
229 //18 minterReceiverRef.deposit(from: <-sentVault) Raw Error
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: pre-condition failed: FungibleToken.Vault.withdraw: Cannot withdraw tokens! The amount requested to be withdrawn (7735.00000000) is greater than the balance of the Vault (5286.18655840). --> f233dcee88fe0abe.FungibleToken:224:16 Was this error unhelpful? Consider suggesting an improvement here: https://github.com/onflow/cadence/issues.
Transaction Summary
Contract CallCalled FungibleToken, FazeUtilityCoin
Contracts
Script Arguments
{
"0xe6c1d61b285dd319": [
"7735.0"
]
}{
"0xe6c1d61b285dd319": [
"224.0"
]
}Cadence Script
1import FungibleToken from 0xf233dcee88fe0abe
2import FazeUtilityCoin from 0x4eded0de73020ca5
3
4// at most 50 signers
5
6transaction(amountsFromUsersToMinter: {Address: [UFix64]}, amountsFromMinterToUsers: {Address: [UFix64]}) {
7
8 let tokenAdmin: &FazeUtilityCoin.Administrator
9 let vaultRef: auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault
10
11
12 prepare(
13user1: auth(BorrowValue) &Account,
14 //user: auth(BorrowValue) &Account,
15 //user: auth(BorrowValue) &Account,
16 //user: auth(BorrowValue) &Account,
17 //user: auth(BorrowValue) &Account,
18 //user: auth(BorrowValue) &Account,
19 //user: auth(BorrowValue) &Account,
20 //user: auth(BorrowValue) &Account,
21 //user: auth(BorrowValue) &Account,
22 //user: auth(BorrowValue) &Account,
23 //user: auth(BorrowValue) &Account,
24 //user: auth(BorrowValue) &Account,
25 //user: auth(BorrowValue) &Account,
26 //user: auth(BorrowValue) &Account,
27 //user: auth(BorrowValue) &Account,
28 //user: auth(BorrowValue) &Account,
29 //user: auth(BorrowValue) &Account,
30 //user: auth(BorrowValue) &Account,
31 //user: auth(BorrowValue) &Account,
32 //user: auth(BorrowValue) &Account,
33 //user: auth(BorrowValue) &Account,
34 //user: auth(BorrowValue) &Account,
35 //user: auth(BorrowValue) &Account,
36 //user: auth(BorrowValue) &Account,
37 //user: auth(BorrowValue) &Account,
38 //user: auth(BorrowValue) &Account,
39 //user: auth(BorrowValue) &Account,
40 //user: auth(BorrowValue) &Account,
41 //user: auth(BorrowValue) &Account,
42 //user: auth(BorrowValue) &Account,
43 //user: auth(BorrowValue) &Account,
44 //user: auth(BorrowValue) &Account,
45 //user: auth(BorrowValue) &Account,
46 //user: auth(BorrowValue) &Account,
47 //user: auth(BorrowValue) &Account,
48 //user: auth(BorrowValue) &Account,
49 //user: auth(BorrowValue) &Account,
50 //user: auth(BorrowValue) &Account,
51 //user: auth(BorrowValue) &Account,
52 //user: auth(BorrowValue) &Account,
53 //user: auth(BorrowValue) &Account,
54 //user: auth(BorrowValue) &Account,
55 //user: auth(BorrowValue) &Account,
56 //user: auth(BorrowValue) &Account,
57 //user: auth(BorrowValue) &Account,
58 //user: auth(BorrowValue) &Account,
59 //user: auth(BorrowValue) &Account,
60 //user: auth(BorrowValue) &Account,
61 //user: auth(BorrowValue) &Account,
62 //user: auth(BorrowValue) &Account,
63 minter: auth(BorrowValue) &Account) {
64
65 self.vaultRef = minter.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
66 ?? panic("Could not borrow reference to the owner's Vault!")
67
68 // 1 - Minter distribute tokens to users
69 self.tokenAdmin = minter.storage
70 .borrow<&FazeUtilityCoin.Administrator>(from: FazeUtilityCoin.AdminStoragePath)
71 ?? panic("minter is not the token admin")
72
73 var totalAmountFromMinterToUsers = 0.0
74 for userAddress in amountsFromMinterToUsers.keys {
75 for amount in amountsFromMinterToUsers[userAddress]! {
76 totalAmountFromMinterToUsers = totalAmountFromMinterToUsers + amount
77 }
78 }
79 let minterResource <- self.tokenAdmin.createNewMinter(allowedAmount: totalAmountFromMinterToUsers)
80 for userAddress in amountsFromMinterToUsers.keys {
81 let amountsFromMinterToUser = amountsFromMinterToUsers[userAddress]!
82 let userAccount = getAccount(userAddress)
83 let userReceiverRef = userAccount.capabilities
84 .borrow<&{FungibleToken.Receiver}>(FazeUtilityCoin.ReceiverPublicPath)
85 ?? panic("Could not borrow receiver reference to the recipient's Vault")
86 for amountFromMinterToUser in amountsFromMinterToUser {
87 if self.vaultRef.balance < amountFromMinterToUser {
88 let mintedVault <- minterResource.mintTokens(amount: amountFromMinterToUser)
89 userReceiverRef.deposit(from: <-mintedVault)
90 } else {
91 let sentVault <- self.vaultRef.withdraw(amount: amountFromMinterToUser)
92 userReceiverRef.deposit(from: <-sentVault)
93 }
94 }
95 }
96 destroy minterResource
97
98 // 2 - Users deposit onto minter - DEBIT
99 let minterAccount = getAccount(minter.address)
100 let minterReceiverRef = minterAccount.capabilities
101 .borrow<&{FungibleToken.Receiver}>(FazeUtilityCoin.ReceiverPublicPath)
102 ?? panic("Could not borrow receiver reference to the recipient's Vault")
103
104 // Every user deposits their amounts onto the minter
105
106 for amountsToDebit in amountsFromUsersToMinter[user1.address]! {
107 let userVaultRef = user1.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
108 ?? panic("Could not borrow reference to the owner's Vault!")
109 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
110 minterReceiverRef.deposit(from: <-sentVault)
111 }
112
113 //2 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
114 //2 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
115 //2 ?? panic("Could not borrow reference to the owner's Vault!")
116 //2 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
117 //2 minterReceiverRef.deposit(from: <-sentVault)
118 //2 }
119
120 //3 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
121 //3 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
122 //3 ?? panic("Could not borrow reference to the owner's Vault!")
123 //3 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
124 //3 minterReceiverRef.deposit(from: <-sentVault)
125 //3 }
126
127 //4 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
128 //4 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
129 //4 ?? panic("Could not borrow reference to the owner's Vault!")
130 //4 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
131 //4 minterReceiverRef.deposit(from: <-sentVault)
132 //4 }
133
134 //5 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
135 //5 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
136 //5 ?? panic("Could not borrow reference to the owner's Vault!")
137 //5 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
138 //5 minterReceiverRef.deposit(from: <-sentVault)
139 //5 }
140
141 //6 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
142 //6 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
143 //6 ?? panic("Could not borrow reference to the owner's Vault!")
144 //6 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
145 //6 minterReceiverRef.deposit(from: <-sentVault)
146 //6 }
147
148 //7 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
149 //7 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
150 //7 ?? panic("Could not borrow reference to the owner's Vault!")
151 //7 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
152 //7 minterReceiverRef.deposit(from: <-sentVault)
153 //7 }
154
155 //8 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
156 //8 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
157 //8 ?? panic("Could not borrow reference to the owner's Vault!")
158 //8 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
159 //8 minterReceiverRef.deposit(from: <-sentVault)
160 //8 }
161
162 //9 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
163 //9 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
164 //9 ?? panic("Could not borrow reference to the owner's Vault!")
165 //9 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
166 //9 minterReceiverRef.deposit(from: <-sentVault)
167 //9 }
168
169 //10 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
170 //10 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
171 //10 ?? panic("Could not borrow reference to the owner's Vault!")
172 //10 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
173 //10 minterReceiverRef.deposit(from: <-sentVault)
174 //10 }
175
176 //11 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
177 //11 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
178 //11 ?? panic("Could not borrow reference to the owner's Vault!")
179 //11 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
180 //11 minterReceiverRef.deposit(from: <-sentVault)
181 //11 }
182
183 //12 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
184 //12 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
185 //12 ?? panic("Could not borrow reference to the owner's Vault!")
186 //12 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
187 //12 minterReceiverRef.deposit(from: <-sentVault)
188 //12 }
189
190 //13 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
191 //13 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
192 //13 ?? panic("Could not borrow reference to the owner's Vault!")
193 //13 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
194 //13 minterReceiverRef.deposit(from: <-sentVault)
195 //13 }
196
197 //14 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
198 //14 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
199 //14 ?? panic("Could not borrow reference to the owner's Vault!")
200 //14 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
201 //14 minterReceiverRef.deposit(from: <-sentVault)
202 //14 }
203
204 //15 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
205 //15 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
206 //15 ?? panic("Could not borrow reference to the owner's Vault!")
207 //15 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
208 //15 minterReceiverRef.deposit(from: <-sentVault)
209 //15 }
210
211 //16 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
212 //16 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
213 //16 ?? panic("Could not borrow reference to the owner's Vault!")
214 //16 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
215 //16 minterReceiverRef.deposit(from: <-sentVault)
216 //16 }
217
218 //17 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
219 //17 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
220 //17 ?? panic("Could not borrow reference to the owner's Vault!")
221 //17 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
222 //17 minterReceiverRef.deposit(from: <-sentVault)
223 //17 }
224
225 //18 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
226 //18 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
227 //18 ?? panic("Could not borrow reference to the owner's Vault!")
228 //18 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
229 //18 minterReceiverRef.deposit(from: <-sentVault)
230 //18 }
231
232 //19 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
233 //19 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
234 //19 ?? panic("Could not borrow reference to the owner's Vault!")
235 //19 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
236 //19 minterReceiverRef.deposit(from: <-sentVault)
237 //19 }
238
239 //20 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
240 //20 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
241 //20 ?? panic("Could not borrow reference to the owner's Vault!")
242 //20 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
243 //20 minterReceiverRef.deposit(from: <-sentVault)
244 //20 }
245
246 //21 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
247 //21 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
248 //21 ?? panic("Could not borrow reference to the owner's Vault!")
249 //21 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
250 //21 minterReceiverRef.deposit(from: <-sentVault)
251 //21 }
252
253 //22 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
254 //22 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
255 //22 ?? panic("Could not borrow reference to the owner's Vault!")
256 //22 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
257 //22 minterReceiverRef.deposit(from: <-sentVault)
258 //22 }
259
260 //23 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
261 //23 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
262 //23 ?? panic("Could not borrow reference to the owner's Vault!")
263 //23 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
264 //23 minterReceiverRef.deposit(from: <-sentVault)
265 //23 }
266
267 //24 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
268 //24 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
269 //24 ?? panic("Could not borrow reference to the owner's Vault!")
270 //24 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
271 //24 minterReceiverRef.deposit(from: <-sentVault)
272 //24 }
273
274 //25 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
275 //25 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
276 //25 ?? panic("Could not borrow reference to the owner's Vault!")
277 //25 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
278 //25 minterReceiverRef.deposit(from: <-sentVault)
279 //25 }
280
281 //26 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
282 //26 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
283 //26 ?? panic("Could not borrow reference to the owner's Vault!")
284 //26 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
285 //26 minterReceiverRef.deposit(from: <-sentVault)
286 //26 }
287
288 //27 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
289 //27 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
290 //27 ?? panic("Could not borrow reference to the owner's Vault!")
291 //27 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
292 //27 minterReceiverRef.deposit(from: <-sentVault)
293 //27 }
294
295 //28 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
296 //28 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
297 //28 ?? panic("Could not borrow reference to the owner's Vault!")
298 //28 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
299 //28 minterReceiverRef.deposit(from: <-sentVault)
300 //28 }
301
302 //29 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
303 //29 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
304 //29 ?? panic("Could not borrow reference to the owner's Vault!")
305 //29 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
306 //29 minterReceiverRef.deposit(from: <-sentVault)
307 //29 }
308
309 //30 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
310 //30 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
311 //30 ?? panic("Could not borrow reference to the owner's Vault!")
312 //30 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
313 //30 minterReceiverRef.deposit(from: <-sentVault)
314 //30 }
315
316 //31 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
317 //31 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
318 //31 ?? panic("Could not borrow reference to the owner's Vault!")
319 //31 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
320 //31 minterReceiverRef.deposit(from: <-sentVault)
321 //31 }
322
323 //32 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
324 //32 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
325 //32 ?? panic("Could not borrow reference to the owner's Vault!")
326 //32 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
327 //32 minterReceiverRef.deposit(from: <-sentVault)
328 //32 }
329
330 //33 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
331 //33 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
332 //33 ?? panic("Could not borrow reference to the owner's Vault!")
333 //33 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
334 //33 minterReceiverRef.deposit(from: <-sentVault)
335 //33 }
336
337 //34 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
338 //34 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
339 //34 ?? panic("Could not borrow reference to the owner's Vault!")
340 //34 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
341 //34 minterReceiverRef.deposit(from: <-sentVault)
342 //34 }
343
344 //35 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
345 //35 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
346 //35 ?? panic("Could not borrow reference to the owner's Vault!")
347 //35 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
348 //35 minterReceiverRef.deposit(from: <-sentVault)
349 //35 }
350
351 //36 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
352 //36 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
353 //36 ?? panic("Could not borrow reference to the owner's Vault!")
354 //36 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
355 //36 minterReceiverRef.deposit(from: <-sentVault)
356 //36 }
357
358 //37 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
359 //37 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
360 //37 ?? panic("Could not borrow reference to the owner's Vault!")
361 //37 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
362 //37 minterReceiverRef.deposit(from: <-sentVault)
363 //37 }
364
365 //38 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
366 //38 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
367 //38 ?? panic("Could not borrow reference to the owner's Vault!")
368 //38 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
369 //38 minterReceiverRef.deposit(from: <-sentVault)
370 //38 }
371
372 //39 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
373 //39 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
374 //39 ?? panic("Could not borrow reference to the owner's Vault!")
375 //39 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
376 //39 minterReceiverRef.deposit(from: <-sentVault)
377 //39 }
378
379 //40 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
380 //40 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
381 //40 ?? panic("Could not borrow reference to the owner's Vault!")
382 //40 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
383 //40 minterReceiverRef.deposit(from: <-sentVault)
384 //40 }
385
386 //41 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
387 //41 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
388 //41 ?? panic("Could not borrow reference to the owner's Vault!")
389 //41 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
390 //41 minterReceiverRef.deposit(from: <-sentVault)
391 //41 }
392
393 //42 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
394 //42 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
395 //42 ?? panic("Could not borrow reference to the owner's Vault!")
396 //42 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
397 //42 minterReceiverRef.deposit(from: <-sentVault)
398 //42 }
399
400 //43 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
401 //43 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
402 //43 ?? panic("Could not borrow reference to the owner's Vault!")
403 //43 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
404 //43 minterReceiverRef.deposit(from: <-sentVault)
405 //43 }
406
407 //44 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
408 //44 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
409 //44 ?? panic("Could not borrow reference to the owner's Vault!")
410 //44 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
411 //44 minterReceiverRef.deposit(from: <-sentVault)
412 //44 }
413
414 //45 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
415 //45 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
416 //45 ?? panic("Could not borrow reference to the owner's Vault!")
417 //45 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
418 //45 minterReceiverRef.deposit(from: <-sentVault)
419 //45 }
420
421 //46 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
422 //46 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
423 //46 ?? panic("Could not borrow reference to the owner's Vault!")
424 //46 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
425 //46 minterReceiverRef.deposit(from: <-sentVault)
426 //46 }
427
428 //47 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
429 //47 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
430 //47 ?? panic("Could not borrow reference to the owner's Vault!")
431 //47 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
432 //47 minterReceiverRef.deposit(from: <-sentVault)
433 //47 }
434
435 //48 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
436 //48 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
437 //48 ?? panic("Could not borrow reference to the owner's Vault!")
438 //48 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
439 //48 minterReceiverRef.deposit(from: <-sentVault)
440 //48 }
441
442 //49 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
443 //49 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
444 //49 ?? panic("Could not borrow reference to the owner's Vault!")
445 //49 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
446 //49 minterReceiverRef.deposit(from: <-sentVault)
447 //49 }
448
449 //50 for amountsToDebit in amountsFromUsersToMinter[user.address]! {
450 //50 let userVaultRef = user.storage.borrow<auth(FungibleToken.Withdraw) &FazeUtilityCoin.Vault>(from: FazeUtilityCoin.VaultStoragePath)
451 //50 ?? panic("Could not borrow reference to the owner's Vault!")
452 //50 let sentVault <- userVaultRef.withdraw(amount: amountsToDebit)
453 //50 minterReceiverRef.deposit(from: <-sentVault)
454 //50 }
455 }
456
457 execute {
458
459 }
460}