tx · 7JRA5pYAQBSXo2GJqALxTEkQzuvVpXFeRqD9zUfT8wQk 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw: -0.01000000 Waves 2022.06.02 22:46 [2079161] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves
{ "type": 13, "id": "7JRA5pYAQBSXo2GJqALxTEkQzuvVpXFeRqD9zUfT8wQk", "fee": 1000000, "feeAssetId": null, "timestamp": 1654199302720, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "3yeYxtcXTL353kRSi5jeAYToK6yKJvg3nyAXdicaqWPEe8Dd89afeq3GUwYSEpYova8LZ1fpAEmF6PsGP2FcAvge" ], "script": "base64:AAIFAAAAAAAAABcIAhIFCgMICAgSAwoBARIHCgUICAEBAQAAAAsAAAAABEJVc2QBAAAAIPFnQusGrf9lWc1HAL2GYEY/Z0GCbKxbjRY4l37PzNLbAAAAAARVU0RUAQAAACDxZ0LrBq3/ZVnNRwC9hmBGP2dBgmysW40WOJd+z8zS2wAAAAAEVVNEQwEAAAAg8WdC6wat/2VZzUcAvYZgRj9nQYJsrFuNFjiXfs/M0tsAAAAAA0JUQwEAAAAg8WdC6wat/2VZzUcAvYZgRj9nQYJsrFuNFjiXfs/M0tsAAAAAA0VUSAEAAAAg8WdC6wat/2VZzUcAvYZgRj9nQYJsrFuNFjiXfs/M0tsAAAAAA0JOQgEAAAAg8WdC6wat/2VZzUcAvYZgRj9nQYJsrFuNFjiXfs/M0tsAAAAABFVTRE4BAAAAIPFnQusGrf9lWc1HAL2GYEY/Z0GCbKxbjRY4l37PzNLbAAAAAARIQVNIAQAAACDxZ0LrBq3/ZVnNRwC9hmBGP2dBgmysW40WOJd+z8zS2wAAAAAES1VTRAEAAAAg8WdC6wat/2VZzUcAvYZgRj9nQYJsrFuN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AADBQAAAAlkQXBwRnJlZXMJAABpAAAAAgkAAGgAAAACBQAAAAhBZG1pbkZlZQUAAAAGYW1vdW50AAAAAAAAAABkBQAAAAlBc3NldFVzZWQFAAAAA25pbAUAAAAJQXNzZXRVc2VkAAAAAO/0v+8=", "height": 2079161, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 87psEoK9aFUcNB9WXzJLHztZTxa2qDcHnXr5nwPyG66Q Next: 9TzpGq4Ye3SCt2VNQ86FNLydPnotxpPcRCuKMosybJxH Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
7 | 7 | ||
8 | - | let c = base58' | |
8 | + | let c = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
9 | 9 | ||
10 | - | let d = base58' | |
10 | + | let d = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
11 | 11 | ||
12 | - | let e = base58' | |
12 | + | let e = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
13 | 13 | ||
14 | - | let f = base58' | |
14 | + | let f = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
15 | 15 | ||
16 | - | let g = base58' | |
16 | + | let g = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
17 | 17 | ||
18 | - | let h = base58' | |
18 | + | let h = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
19 | 19 | ||
20 | - | let i = base58' | |
20 | + | let i = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
21 | 21 | ||
22 | 22 | let j = base58'3N59qn7Ndw24WrGFkNFk7PGTBCzdMETyKqj' | |
23 | 23 | ||
24 | - | let k = base58'3NB5uVMWSmaPW3cqrLMoAUgAPAYdoYHQK6U' | |
25 | - | ||
26 | - | @Callable(l) | |
27 | - | func Reset () = [IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), 0), IntegerEntry((toBase58String(l.caller.bytes) + "_Paidtrx"), 0), IntegerEntry((toBase58String(l.caller.bytes) + "_LastPaid"), height)] | |
28 | - | ||
29 | - | ||
24 | + | let k = base58'3MzqbY4iHg79pg4DNLK6UXUsbPuDcoJTzLw' | |
30 | 25 | ||
31 | 26 | @Callable(l) | |
32 | 27 | func DepositFunds (m,n,o) = { | |
142 | 137 | ||
143 | 138 | ||
144 | 139 | @Callable(l) | |
145 | - | func PayFreelancerOnDemand () = { | |
146 | - | let v = 4 | |
147 | - | let H = 1 | |
148 | - | let I = 10 | |
149 | - | let p = (toBase58String(l.caller.bytes) + "_Payment") | |
150 | - | let o = (toBase58String(l.caller.bytes) + "_Freelancer") | |
151 | - | let J = (toBase58String(l.caller.bytes) + "_LastPaid") | |
152 | - | let w = (toBase58String(l.caller.bytes) + "_Asset") | |
153 | - | let x = (toBase58String(l.caller.bytes) + "_Paidtrx") | |
154 | - | let q = { | |
155 | - | let r = getInteger(this, p) | |
156 | - | if ($isInstanceOf(r, "Int")) | |
157 | - | then { | |
158 | - | let s = r | |
159 | - | s | |
160 | - | } | |
161 | - | else 0 | |
162 | - | } | |
163 | - | let y = { | |
164 | - | let r = getInteger(this, x) | |
165 | - | if ($isInstanceOf(r, "Int")) | |
166 | - | then { | |
167 | - | let s = r | |
168 | - | s | |
169 | - | } | |
170 | - | else 0 | |
171 | - | } | |
172 | - | let K = { | |
173 | - | let r = getInteger(this, J) | |
174 | - | if ($isInstanceOf(r, "Int")) | |
175 | - | then { | |
176 | - | let s = r | |
177 | - | s | |
178 | - | } | |
179 | - | else height | |
180 | - | } | |
181 | - | let z = getStringValue(this, o) | |
182 | - | let A = getStringValue(this, w) | |
183 | - | let B = addressFromStringValue(z) | |
184 | - | let C = Address(j) | |
185 | - | let u = if ((A == "Waves")) | |
186 | - | then unit | |
187 | - | else fromBase58String(A) | |
188 | - | if ((0 >= (q - (H * 100000000)))) | |
189 | - | then throw(("You do not have enough funds to make payment, your available funds are: " + toString((q / 100000000)))) | |
190 | - | else if (if (((K + I) > height)) | |
191 | - | then (y > 1) | |
192 | - | else false) | |
193 | - | then throw(((("Cannot make Payment before " + toString(K)) + " min") + toString(I))) | |
194 | - | else { | |
195 | - | let F = (H * 100000000) | |
196 | - | let G = if ((y == 3)) | |
197 | - | then 0 | |
198 | - | else (y + 1) | |
199 | - | let D = if ((y == 3)) | |
200 | - | then 0 | |
201 | - | else ((q - (H * 100000000)) - (((G * 25) * (q - (H * 100000000))) / 100)) | |
202 | - | let E = ((25 * q) / 100) | |
203 | - | $Tuple2([IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), D), IntegerEntry((toBase58String(l.caller.bytes) + "_Paidtrx"), G), IntegerEntry((toBase58String(l.caller.bytes) + "_LastPaid"), height), IntegerEntry("WaitTime", I), IntegerEntry("LastPaymentBlockValue", K), IntegerEntry("Check", (K + I)), ScriptTransfer(B, E, u), ScriptTransfer(C, F, u)], u) | |
204 | - | } | |
205 | - | } | |
206 | - | ||
207 | - | ||
208 | - | ||
209 | - | @Callable(l) | |
210 | - | func AdminTransfer (L,M,N,O,P) = if ((l.caller.bytes != k)) | |
140 | + | func AdminTransfer (H,I,J,K,L) = if ((l.caller.bytes != k)) | |
211 | 141 | then throw("Only Admin can do this") | |
212 | - | else if (((( | |
142 | + | else if ((((K + J) + L) != 100)) | |
213 | 143 | then throw("Total of Percentages cannot be different from 100%") | |
214 | 144 | else { | |
215 | - | let p = ( | |
216 | - | let o = ( | |
145 | + | let p = (H + "_Payment") | |
146 | + | let o = (H + "_Freelancer") | |
217 | 147 | let w = (toBase58String(l.caller.bytes) + "_Asset") | |
218 | 148 | let q = { | |
219 | 149 | let r = getInteger(this, p) | |
228 | 158 | let B = addressFromStringValue(z) | |
229 | 159 | let A = getStringValue(this, w) | |
230 | 160 | let C = Address(j) | |
231 | - | let | |
161 | + | let M = addressFromStringValue(H) | |
232 | 162 | let u = if ((A == "Waves")) | |
233 | 163 | then unit | |
234 | 164 | else fromBase58String(A) | |
235 | 165 | if ((q == 0)) | |
236 | 166 | then throw("User's balance is 0 BUsdc cannot realize any payment") | |
237 | - | else $Tuple2([IntegerEntry(( | |
167 | + | else $Tuple2([IntegerEntry((H + "_Payment"), 0), ScriptTransfer(B, ((J * q) / 100), u), ScriptTransfer(M, ((K * q) / 100), u), ScriptTransfer(C, ((L * q) / 100), u)], u) | |
238 | 168 | } | |
239 | 169 | ||
240 | 170 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
7 | 7 | ||
8 | - | let c = base58' | |
8 | + | let c = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
9 | 9 | ||
10 | - | let d = base58' | |
10 | + | let d = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
11 | 11 | ||
12 | - | let e = base58' | |
12 | + | let e = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
13 | 13 | ||
14 | - | let f = base58' | |
14 | + | let f = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
15 | 15 | ||
16 | - | let g = base58' | |
16 | + | let g = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
17 | 17 | ||
18 | - | let h = base58' | |
18 | + | let h = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
19 | 19 | ||
20 | - | let i = base58' | |
20 | + | let i = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
21 | 21 | ||
22 | 22 | let j = base58'3N59qn7Ndw24WrGFkNFk7PGTBCzdMETyKqj' | |
23 | 23 | ||
24 | - | let k = base58'3NB5uVMWSmaPW3cqrLMoAUgAPAYdoYHQK6U' | |
25 | - | ||
26 | - | @Callable(l) | |
27 | - | func Reset () = [IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), 0), IntegerEntry((toBase58String(l.caller.bytes) + "_Paidtrx"), 0), IntegerEntry((toBase58String(l.caller.bytes) + "_LastPaid"), height)] | |
28 | - | ||
29 | - | ||
24 | + | let k = base58'3MzqbY4iHg79pg4DNLK6UXUsbPuDcoJTzLw' | |
30 | 25 | ||
31 | 26 | @Callable(l) | |
32 | 27 | func DepositFunds (m,n,o) = { | |
33 | 28 | let p = (toBase58String(l.caller.bytes) + "_Payment") | |
34 | 29 | let q = { | |
35 | 30 | let r = getInteger(this, p) | |
36 | 31 | if ($isInstanceOf(r, "Int")) | |
37 | 32 | then { | |
38 | 33 | let s = r | |
39 | 34 | s | |
40 | 35 | } | |
41 | 36 | else 0 | |
42 | 37 | } | |
43 | 38 | if ((q != 0)) | |
44 | 39 | then throw("You have already deposited funds, deposits can only be done once") | |
45 | 40 | else { | |
46 | 41 | let t = if ((size(l.payments) == 1)) | |
47 | 42 | then l.payments[0] | |
48 | 43 | else throw("Attached payment is required") | |
49 | 44 | if (if (if (if (if (if (if (if (if (if (if ((0 >= t.amount)) | |
50 | 45 | then (t.assetId != a) | |
51 | 46 | else false) | |
52 | 47 | then (t.assetId != b) | |
53 | 48 | else false) | |
54 | 49 | then (t.assetId != c) | |
55 | 50 | else false) | |
56 | 51 | then (t.assetId != d) | |
57 | 52 | else false) | |
58 | 53 | then (t.assetId != e) | |
59 | 54 | else false) | |
60 | 55 | then (t.assetId != f) | |
61 | 56 | else false) | |
62 | 57 | then (t.assetId != g) | |
63 | 58 | else false) | |
64 | 59 | then (t.assetId != h) | |
65 | 60 | else false) | |
66 | 61 | then (t.assetId != i) | |
67 | 62 | else false) | |
68 | 63 | then isDefined(t.assetId) | |
69 | 64 | else false) | |
70 | 65 | then throw("Can only deposit accepted tokens, and amount should be positive") | |
71 | 66 | else if (if (if ((m == "")) | |
72 | 67 | then true | |
73 | 68 | else (n == "")) | |
74 | 69 | then true | |
75 | 70 | else (o == "")) | |
76 | 71 | then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty") | |
77 | 72 | else { | |
78 | 73 | let u = if (isDefined(t.assetId)) | |
79 | 74 | then toBase58String(value(t.assetId)) | |
80 | 75 | else "Waves" | |
81 | 76 | [StringEntry((toBase58String(l.caller.bytes) + "_Scope"), m), StringEntry((toBase58String(l.caller.bytes) + "_Deliv"), n), StringEntry((toBase58String(l.caller.bytes) + "_Asset"), u), StringEntry((toBase58String(l.caller.bytes) + "_Freelancer"), o), IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), t.amount)] | |
82 | 77 | } | |
83 | 78 | } | |
84 | 79 | } | |
85 | 80 | ||
86 | 81 | ||
87 | 82 | ||
88 | 83 | @Callable(l) | |
89 | 84 | func PayFreelancer (v) = { | |
90 | 85 | let p = (toBase58String(l.caller.bytes) + "_Payment") | |
91 | 86 | let o = (toBase58String(l.caller.bytes) + "_Freelancer") | |
92 | 87 | let w = (toBase58String(l.caller.bytes) + "_Asset") | |
93 | 88 | let x = (toBase58String(l.caller.bytes) + "_Paidtrx") | |
94 | 89 | let q = { | |
95 | 90 | let r = getInteger(this, p) | |
96 | 91 | if ($isInstanceOf(r, "Int")) | |
97 | 92 | then { | |
98 | 93 | let s = r | |
99 | 94 | s | |
100 | 95 | } | |
101 | 96 | else 0 | |
102 | 97 | } | |
103 | 98 | let y = { | |
104 | 99 | let r = getInteger(this, x) | |
105 | 100 | if ($isInstanceOf(r, "Int")) | |
106 | 101 | then { | |
107 | 102 | let s = r | |
108 | 103 | s | |
109 | 104 | } | |
110 | 105 | else 0 | |
111 | 106 | } | |
112 | 107 | let z = getStringValue(this, o) | |
113 | 108 | let A = getStringValue(this, w) | |
114 | 109 | let B = addressFromStringValue(z) | |
115 | 110 | let C = Address(j) | |
116 | 111 | let u = if ((A == "Waves")) | |
117 | 112 | then unit | |
118 | 113 | else fromBase58String(A) | |
119 | 114 | if ((0 >= (((95 * q) / 100) - (v * 100000000)))) | |
120 | 115 | then throw(("You do not have enough funds to make payment, your available funds are: " + toString((q / 100000000)))) | |
121 | 116 | else if (if ((y >= 12)) | |
122 | 117 | then (q > 0) | |
123 | 118 | else false) | |
124 | 119 | then throw("You have already done 12 payments, you cannot make more payments") | |
125 | 120 | else { | |
126 | 121 | let D = if ((y == 11)) | |
127 | 122 | then 0 | |
128 | 123 | else (q - (v * 100000000)) | |
129 | 124 | let E = if ((y == 11)) | |
130 | 125 | then ((95 * q) / 100) | |
131 | 126 | else ((95 * v) * 1000000) | |
132 | 127 | let F = if ((y == 11)) | |
133 | 128 | then ((5 * q) / 100) | |
134 | 129 | else ((5 * v) * 1000000) | |
135 | 130 | let G = if ((y == 11)) | |
136 | 131 | then 0 | |
137 | 132 | else (y + 1) | |
138 | 133 | $Tuple2([IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), D), IntegerEntry((toBase58String(l.caller.bytes) + "_Paidtrx"), G), ScriptTransfer(B, E, u), ScriptTransfer(C, F, u)], u) | |
139 | 134 | } | |
140 | 135 | } | |
141 | 136 | ||
142 | 137 | ||
143 | 138 | ||
144 | 139 | @Callable(l) | |
145 | - | func PayFreelancerOnDemand () = { | |
146 | - | let v = 4 | |
147 | - | let H = 1 | |
148 | - | let I = 10 | |
149 | - | let p = (toBase58String(l.caller.bytes) + "_Payment") | |
150 | - | let o = (toBase58String(l.caller.bytes) + "_Freelancer") | |
151 | - | let J = (toBase58String(l.caller.bytes) + "_LastPaid") | |
152 | - | let w = (toBase58String(l.caller.bytes) + "_Asset") | |
153 | - | let x = (toBase58String(l.caller.bytes) + "_Paidtrx") | |
154 | - | let q = { | |
155 | - | let r = getInteger(this, p) | |
156 | - | if ($isInstanceOf(r, "Int")) | |
157 | - | then { | |
158 | - | let s = r | |
159 | - | s | |
160 | - | } | |
161 | - | else 0 | |
162 | - | } | |
163 | - | let y = { | |
164 | - | let r = getInteger(this, x) | |
165 | - | if ($isInstanceOf(r, "Int")) | |
166 | - | then { | |
167 | - | let s = r | |
168 | - | s | |
169 | - | } | |
170 | - | else 0 | |
171 | - | } | |
172 | - | let K = { | |
173 | - | let r = getInteger(this, J) | |
174 | - | if ($isInstanceOf(r, "Int")) | |
175 | - | then { | |
176 | - | let s = r | |
177 | - | s | |
178 | - | } | |
179 | - | else height | |
180 | - | } | |
181 | - | let z = getStringValue(this, o) | |
182 | - | let A = getStringValue(this, w) | |
183 | - | let B = addressFromStringValue(z) | |
184 | - | let C = Address(j) | |
185 | - | let u = if ((A == "Waves")) | |
186 | - | then unit | |
187 | - | else fromBase58String(A) | |
188 | - | if ((0 >= (q - (H * 100000000)))) | |
189 | - | then throw(("You do not have enough funds to make payment, your available funds are: " + toString((q / 100000000)))) | |
190 | - | else if (if (((K + I) > height)) | |
191 | - | then (y > 1) | |
192 | - | else false) | |
193 | - | then throw(((("Cannot make Payment before " + toString(K)) + " min") + toString(I))) | |
194 | - | else { | |
195 | - | let F = (H * 100000000) | |
196 | - | let G = if ((y == 3)) | |
197 | - | then 0 | |
198 | - | else (y + 1) | |
199 | - | let D = if ((y == 3)) | |
200 | - | then 0 | |
201 | - | else ((q - (H * 100000000)) - (((G * 25) * (q - (H * 100000000))) / 100)) | |
202 | - | let E = ((25 * q) / 100) | |
203 | - | $Tuple2([IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), D), IntegerEntry((toBase58String(l.caller.bytes) + "_Paidtrx"), G), IntegerEntry((toBase58String(l.caller.bytes) + "_LastPaid"), height), IntegerEntry("WaitTime", I), IntegerEntry("LastPaymentBlockValue", K), IntegerEntry("Check", (K + I)), ScriptTransfer(B, E, u), ScriptTransfer(C, F, u)], u) | |
204 | - | } | |
205 | - | } | |
206 | - | ||
207 | - | ||
208 | - | ||
209 | - | @Callable(l) | |
210 | - | func AdminTransfer (L,M,N,O,P) = if ((l.caller.bytes != k)) | |
140 | + | func AdminTransfer (H,I,J,K,L) = if ((l.caller.bytes != k)) | |
211 | 141 | then throw("Only Admin can do this") | |
212 | - | else if (((( | |
142 | + | else if ((((K + J) + L) != 100)) | |
213 | 143 | then throw("Total of Percentages cannot be different from 100%") | |
214 | 144 | else { | |
215 | - | let p = ( | |
216 | - | let o = ( | |
145 | + | let p = (H + "_Payment") | |
146 | + | let o = (H + "_Freelancer") | |
217 | 147 | let w = (toBase58String(l.caller.bytes) + "_Asset") | |
218 | 148 | let q = { | |
219 | 149 | let r = getInteger(this, p) | |
220 | 150 | if ($isInstanceOf(r, "Int")) | |
221 | 151 | then { | |
222 | 152 | let s = r | |
223 | 153 | s | |
224 | 154 | } | |
225 | 155 | else 0 | |
226 | 156 | } | |
227 | 157 | let z = getStringValue(this, o) | |
228 | 158 | let B = addressFromStringValue(z) | |
229 | 159 | let A = getStringValue(this, w) | |
230 | 160 | let C = Address(j) | |
231 | - | let | |
161 | + | let M = addressFromStringValue(H) | |
232 | 162 | let u = if ((A == "Waves")) | |
233 | 163 | then unit | |
234 | 164 | else fromBase58String(A) | |
235 | 165 | if ((q == 0)) | |
236 | 166 | then throw("User's balance is 0 BUsdc cannot realize any payment") | |
237 | - | else $Tuple2([IntegerEntry(( | |
167 | + | else $Tuple2([IntegerEntry((H + "_Payment"), 0), ScriptTransfer(B, ((J * q) / 100), u), ScriptTransfer(M, ((K * q) / 100), u), ScriptTransfer(C, ((L * q) / 100), u)], u) | |
238 | 168 | } | |
239 | 169 | ||
240 | 170 |
github/deemru/w8io/026f985 97.61 ms ◑