tx · HoN3icAcqPPGdqGqMqoxLajwSSubRqN8kds6MCZG9ZpD 3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo: -0.01500000 Waves 2022.07.29 23:41 [2161607] smart account 3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo > SELF 0.00000000 Waves
{ "type": 13, "id": "HoN3icAcqPPGdqGqMqoxLajwSSubRqN8kds6MCZG9ZpD", "fee": 1500000, "feeAssetId": null, "timestamp": 1659127303954, "version": 2, "chainId": 84, "sender": "3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo", "senderPublicKey": "8Gc2RCQPWrzPyyDuKYbKYRCrEHXZSYqCAdiiRQAooSZ6", "proofs": [ "615wKT1bonyhhRmUitCScwWpv3AsAGSmWrTVPKPzZYsirXX85MHMyvQmt5Jh6oxmeLtVd4vvkiHYzntgDyieUyzT" ], "script": "base64:AAIFAAAAAAAAACkIAhIDCgEIEgkKBwgICAgBAQESCQoHCAgICAEBARIECgIICBIECgIICAAAAAkAAAAACW9yYWNsZUtleQIAAAAJb3JhY2xlS2V5AQAAAAZnZXRTdHIAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAAAQAAAAZnZXRJbnQAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgAAAAAAAAAAAAAAAAAGb3JhY2xlCQEAAAAGZ2V0U3RyAAAAAQUAAAAJb3JhY2xlS2V5AAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAAGb3JhY2xlAAAAAApzY29uZXhEYXBwCQAEJgAAAAEJAQAAABN2YWx1ZU9yRXJyb3JN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cGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAUAAAADbmlsBAAAAAxzZWxsZXJSZXdhcmQJAABlAAAAAgkAAGUAAAACCQAAZQAAAAIJAABlAAAAAgkAAGUAAAACCQAAZQAAAAIFAAAABmFtb3VudAUAAAAVYWRkcmVzczFDcmVhdG9yUmV3YXJkBQAAABVhZGRyZXNzMkNyZWF0b3JSZXdhcmQFAAAAFWFkZHJlc3MzQ3JlYXRvclJld2FyZAUAAAASYWRkcmVzczFUZWFtUmV3YXJkBQAAABJhZGRyZXNzMlRlYW1SZXdhcmQFAAAAEmFkZHJlc3MzVGVhbVJld2FyZAQAAAAUc2NyaXB0VHJhbnNmZXJTZWxsZXIDCQAAAAAAAAIFAAAABnNlbGxlcgIAAAAABQAAAANuaWwJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAGc2VsbGVyBQAAAAxzZWxsZXJSZXdhcmQICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAAA25pbAkABE4AAAACCQAETgAAAAIJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgUAAAAac2NyaXB0VHJhbnNmZXJBZGRyZXNzVGVhbTEFAAAAGnNjcmlwdFRyYW5zZmVyQWRkcmVzc1RlYW0yBQAAABpzY3JpcHRUcmFuc2ZlckFkZHJlc3NUZWFtMwUAAAAWc2NyaXB0VHJhbnNmZXJBZGRyZXNzMQUAAAAWc2NyaXB0VHJhbnNmZXJBZGRyZXNzMgUAAAAWc2NyaXB0VHJhbnNmZXJBZGRyZXNzMwUAAAAUc2NyaXB0VHJhbnNmZXJTZWxsZXIAAAAA5pBgnw==", "height": 2161607, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: c3uGWJhhts393CHn2FfBQCy3J2Kt4jWC9mJBWoUvSKP Next: none Diff:
Old | New | Differences | |
---|---|---|---|
73 | 73 | then !(isDefined(addressFromString(r))) | |
74 | 74 | else false) | |
75 | 75 | then throw("Address 3 is invalid") | |
76 | - | else if ((((s + t) + u) != 15)) | |
77 | - | then throw("Sum of shares should be equal to 15") | |
78 | - | else [StringEntry((o + "_team_address1"), p), StringEntry((o + "_team_address2"), q), StringEntry((o + "_team_address3"), r), IntegerEntry((o + "_team_share1"), s), IntegerEntry((o + "_team_share2"), t), IntegerEntry((o + "_team_share3"), u)] | |
76 | + | else { | |
77 | + | let v = ((s + t) + u) | |
78 | + | if ((v != 3)) | |
79 | + | then throw(("Sum of shares should be equal to 3, but was equal to " + toString(v))) | |
80 | + | else [StringEntry((o + "_team_address1"), p), StringEntry((o + "_team_address2"), q), StringEntry((o + "_team_address3"), r), IntegerEntry((o + "_team_share1"), s), IntegerEntry((o + "_team_share2"), t), IntegerEntry((o + "_team_share3"), u)] | |
81 | + | } | |
79 | 82 | ||
80 | 83 | ||
81 | 84 | ||
113 | 116 | ||
114 | 117 | ||
115 | 118 | @Callable(m) | |
116 | - | func payFeeResell ( | |
119 | + | func payFeeResell (w,x) = if (!(containsElement(l, m.caller))) | |
117 | 120 | then throw("Not allowed") | |
118 | 121 | else { | |
119 | - | let x = 3 | |
120 | - | let y = value(m.payments[0].amount) | |
121 | - | let z = value(m.payments[0].assetId) | |
122 | - | let A = f((v + "_creator_share1")) | |
123 | - | let B = f((v + "_creator_share2")) | |
124 | - | let C = f((v + "_creator_share3")) | |
125 | - | let D = b((v + "_creator_address1")) | |
126 | - | let E = b((v + "_creator_address2")) | |
127 | - | let F = b((v + "_creator_address3")) | |
128 | - | let G = if ((D == "")) | |
129 | - | then 0 | |
130 | - | else fraction(y, A, 100) | |
122 | + | let y = 3 | |
123 | + | let z = value(m.payments[0].amount) | |
124 | + | let A = value(m.payments[0].assetId) | |
125 | + | let B = f((w + "_creator_share1")) | |
126 | + | let C = f((w + "_creator_share2")) | |
127 | + | let D = f((w + "_creator_share3")) | |
128 | + | let E = b((w + "_creator_address1")) | |
129 | + | let F = b((w + "_creator_address2")) | |
130 | + | let G = b((w + "_creator_address3")) | |
131 | 131 | let H = if ((E == "")) | |
132 | 132 | then 0 | |
133 | - | else fraction( | |
133 | + | else fraction(z, B, 100) | |
134 | 134 | let I = if ((F == "")) | |
135 | 135 | then 0 | |
136 | - | else fraction( | |
137 | - | let J = | |
138 | - | | |
139 | - | | |
140 | - | let | |
141 | - | | |
142 | - | | |
136 | + | else fraction(z, C, 100) | |
137 | + | let J = if ((G == "")) | |
138 | + | then 0 | |
139 | + | else fraction(z, D, 100) | |
140 | + | let K = fraction(z, y, 100) | |
141 | + | let L = ((((z - H) - I) - J) - K) | |
142 | + | let M = [ScriptTransfer(addressFromStringValue(k), K, m.payments[0].assetId)] | |
143 | 143 | let N = if ((E == "")) | |
144 | 144 | then nil | |
145 | 145 | else [ScriptTransfer(addressFromStringValue(E), H, m.payments[0].assetId)] | |
146 | 146 | let O = if ((F == "")) | |
147 | 147 | then nil | |
148 | 148 | else [ScriptTransfer(addressFromStringValue(F), I, m.payments[0].assetId)] | |
149 | - | let P = if (( | |
149 | + | let P = if ((G == "")) | |
150 | 150 | then nil | |
151 | - | else [ScriptTransfer(addressFromStringValue(w), K, m.payments[0].assetId)] | |
152 | - | ((((M ++ N) ++ O) ++ L) ++ P) | |
151 | + | else [ScriptTransfer(addressFromStringValue(G), J, m.payments[0].assetId)] | |
152 | + | let Q = if ((x == "")) | |
153 | + | then nil | |
154 | + | else [ScriptTransfer(addressFromStringValue(x), L, m.payments[0].assetId)] | |
155 | + | ((((N ++ O) ++ P) ++ M) ++ Q) | |
153 | 156 | } | |
154 | 157 | ||
155 | 158 | ||
156 | 159 | ||
157 | 160 | @Callable(m) | |
158 | - | func payFee ( | |
161 | + | func payFee (w,x) = if (!(containsElement(l, m.caller))) | |
159 | 162 | then throw("Not allowed") | |
160 | 163 | else { | |
161 | - | let y = value(m.payments[0].amount) | |
162 | - | let z = value(m.payments[0].assetId) | |
163 | - | let Q = f((v + "_team_share1")) | |
164 | - | let R = f((v + "_team_share2")) | |
165 | - | let S = f((v + "_team_share3")) | |
166 | - | let T = b((v + "_team_address1")) | |
167 | - | let U = b((v + "_team_address2")) | |
168 | - | let V = b((v + "_team_address3")) | |
169 | - | let A = f((v + "_creator_address1")) | |
170 | - | let B = f((v + "_creator_address2")) | |
171 | - | let C = f((v + "_creator_address3")) | |
172 | - | let D = b((v + "_creator_address1")) | |
173 | - | let E = b((v + "_creator_address2")) | |
174 | - | let F = b((v + "_creator_address3")) | |
175 | - | let W = if ((T == "")) | |
176 | - | then 0 | |
177 | - | else fraction(y, Q, 100) | |
164 | + | let z = value(m.payments[0].amount) | |
165 | + | let A = value(m.payments[0].assetId) | |
166 | + | let R = f((w + "_team_share1")) | |
167 | + | let S = f((w + "_team_share2")) | |
168 | + | let T = f((w + "_team_share3")) | |
169 | + | let U = b((w + "_team_address1")) | |
170 | + | let V = b((w + "_team_address2")) | |
171 | + | let W = b((w + "_team_address3")) | |
172 | + | let B = f((w + "_creator_address1")) | |
173 | + | let C = f((w + "_creator_address2")) | |
174 | + | let D = f((w + "_creator_address3")) | |
175 | + | let E = b((w + "_creator_address1")) | |
176 | + | let F = b((w + "_creator_address2")) | |
177 | + | let G = b((w + "_creator_address3")) | |
178 | 178 | let X = if ((U == "")) | |
179 | 179 | then 0 | |
180 | - | else fraction( | |
180 | + | else fraction(z, R, 100) | |
181 | 181 | let Y = if ((V == "")) | |
182 | 182 | then 0 | |
183 | - | else fraction( | |
184 | - | let | |
183 | + | else fraction(z, S, 100) | |
184 | + | let Z = if ((W == "")) | |
185 | 185 | then 0 | |
186 | - | else fraction( | |
186 | + | else fraction(z, T, 100) | |
187 | 187 | let H = if ((E == "")) | |
188 | 188 | then 0 | |
189 | - | else fraction( | |
189 | + | else fraction(z, B, 100) | |
190 | 190 | let I = if ((F == "")) | |
191 | 191 | then 0 | |
192 | - | else fraction( | |
193 | - | let | |
194 | - | then | |
195 | - | else | |
192 | + | else fraction(z, C, 100) | |
193 | + | let J = if ((G == "")) | |
194 | + | then 0 | |
195 | + | else fraction(z, D, 100) | |
196 | 196 | let aa = if ((U == "")) | |
197 | 197 | then nil | |
198 | 198 | else [ScriptTransfer(addressFromStringValue(U), X, m.payments[0].assetId)] | |
199 | 199 | let ab = if ((V == "")) | |
200 | 200 | then nil | |
201 | 201 | else [ScriptTransfer(addressFromStringValue(V), Y, m.payments[0].assetId)] | |
202 | - | let | |
202 | + | let ac = if ((W == "")) | |
203 | 203 | then nil | |
204 | - | else [ScriptTransfer(addressFromStringValue( | |
204 | + | else [ScriptTransfer(addressFromStringValue(W), Z, m.payments[0].assetId)] | |
205 | 205 | let N = if ((E == "")) | |
206 | 206 | then nil | |
207 | 207 | else [ScriptTransfer(addressFromStringValue(E), H, m.payments[0].assetId)] | |
208 | 208 | let O = if ((F == "")) | |
209 | 209 | then nil | |
210 | 210 | else [ScriptTransfer(addressFromStringValue(F), I, m.payments[0].assetId)] | |
211 | - | let K = ((((((y - G) - H) - I) - W) - X) - Y) | |
212 | - | let P = if ((w == "")) | |
211 | + | let P = if ((G == "")) | |
213 | 212 | then nil | |
214 | - | else [ScriptTransfer(addressFromStringValue(w), K, m.payments[0].assetId)] | |
215 | - | ((((((Z ++ aa) ++ ab) ++ M) ++ N) ++ O) ++ P) | |
213 | + | else [ScriptTransfer(addressFromStringValue(G), J, m.payments[0].assetId)] | |
214 | + | let L = ((((((z - H) - I) - J) - X) - Y) - Z) | |
215 | + | let Q = if ((x == "")) | |
216 | + | then nil | |
217 | + | else [ScriptTransfer(addressFromStringValue(x), L, m.payments[0].assetId)] | |
218 | + | ((((((aa ++ ab) ++ ac) ++ N) ++ O) ++ P) ++ Q) | |
216 | 219 | } | |
217 | 220 | ||
218 | 221 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "oracleKey" | |
5 | 5 | ||
6 | 6 | func b (c) = { | |
7 | 7 | let d = getString(this, c) | |
8 | 8 | if ($isInstanceOf(d, "String")) | |
9 | 9 | then { | |
10 | 10 | let e = d | |
11 | 11 | e | |
12 | 12 | } | |
13 | 13 | else "" | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func f (c) = { | |
18 | 18 | let d = getInteger(this, c) | |
19 | 19 | if ($isInstanceOf(d, "Int")) | |
20 | 20 | then { | |
21 | 21 | let e = d | |
22 | 22 | e | |
23 | 23 | } | |
24 | 24 | else 0 | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | let g = b(a) | |
29 | 29 | ||
30 | 30 | let h = value(addressFromString(g)) | |
31 | 31 | ||
32 | 32 | let i = addressFromString(valueOrErrorMessage(getString(h, "sconexDapp"), "sconexDapp not found")) | |
33 | 33 | ||
34 | 34 | let j = addressFromString(valueOrErrorMessage(getString(h, "resellDapp"), "resellDapp not found")) | |
35 | 35 | ||
36 | 36 | let k = valueOrErrorMessage(getString(h, "feeReceiver"), "feeReceiver not found") | |
37 | 37 | ||
38 | 38 | let l = [i, j] | |
39 | 39 | ||
40 | 40 | @Callable(m) | |
41 | 41 | func initDapp (n) = if ((m.caller != this)) | |
42 | 42 | then throw("You cannot do this action") | |
43 | 43 | else if ((g != "")) | |
44 | 44 | then throw("oracle already set, you can't override!") | |
45 | 45 | else [StringEntry(a, n)] | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | ||
49 | 49 | @Callable(m) | |
50 | 50 | func teamSplitFee (o,p,q,r,s,t,u) = if (!(containsElement(l, m.caller))) | |
51 | 51 | then throw("Not allowed") | |
52 | 52 | else if ((0 > s)) | |
53 | 53 | then throw("Share 1 can't be negative") | |
54 | 54 | else if (if (if ((s != 0)) | |
55 | 55 | then true | |
56 | 56 | else (p != "")) | |
57 | 57 | then !(isDefined(addressFromString(p))) | |
58 | 58 | else false) | |
59 | 59 | then throw("Address 1 is invalid") | |
60 | 60 | else if ((0 > t)) | |
61 | 61 | then throw("Share 2 can't be negative") | |
62 | 62 | else if (if (if ((t != 0)) | |
63 | 63 | then true | |
64 | 64 | else (q != "")) | |
65 | 65 | then !(isDefined(addressFromString(q))) | |
66 | 66 | else false) | |
67 | 67 | then throw("Address 2 is invalid") | |
68 | 68 | else if ((0 > u)) | |
69 | 69 | then throw("Share 3 can't be negative") | |
70 | 70 | else if (if (if ((u != 0)) | |
71 | 71 | then true | |
72 | 72 | else (r != "")) | |
73 | 73 | then !(isDefined(addressFromString(r))) | |
74 | 74 | else false) | |
75 | 75 | then throw("Address 3 is invalid") | |
76 | - | else if ((((s + t) + u) != 15)) | |
77 | - | then throw("Sum of shares should be equal to 15") | |
78 | - | else [StringEntry((o + "_team_address1"), p), StringEntry((o + "_team_address2"), q), StringEntry((o + "_team_address3"), r), IntegerEntry((o + "_team_share1"), s), IntegerEntry((o + "_team_share2"), t), IntegerEntry((o + "_team_share3"), u)] | |
76 | + | else { | |
77 | + | let v = ((s + t) + u) | |
78 | + | if ((v != 3)) | |
79 | + | then throw(("Sum of shares should be equal to 3, but was equal to " + toString(v))) | |
80 | + | else [StringEntry((o + "_team_address1"), p), StringEntry((o + "_team_address2"), q), StringEntry((o + "_team_address3"), r), IntegerEntry((o + "_team_share1"), s), IntegerEntry((o + "_team_share2"), t), IntegerEntry((o + "_team_share3"), u)] | |
81 | + | } | |
79 | 82 | ||
80 | 83 | ||
81 | 84 | ||
82 | 85 | @Callable(m) | |
83 | 86 | func creatorSplitFee (o,p,q,r,s,t,u) = if (!(containsElement(l, m.caller))) | |
84 | 87 | then throw("Not allowed") | |
85 | 88 | else if ((0 > s)) | |
86 | 89 | then throw("Share 1 can't be negative") | |
87 | 90 | else if (if (if ((s != 0)) | |
88 | 91 | then true | |
89 | 92 | else (p != "")) | |
90 | 93 | then !(isDefined(addressFromString(p))) | |
91 | 94 | else false) | |
92 | 95 | then throw("Address 1 is invalid") | |
93 | 96 | else if ((0 > t)) | |
94 | 97 | then throw("Share 2 can't be negative") | |
95 | 98 | else if (if (if ((t != 0)) | |
96 | 99 | then true | |
97 | 100 | else (q != "")) | |
98 | 101 | then !(isDefined(addressFromString(q))) | |
99 | 102 | else false) | |
100 | 103 | then throw("Address 2 is invalid") | |
101 | 104 | else if ((0 > u)) | |
102 | 105 | then throw("Share 3 can't be negative") | |
103 | 106 | else if (if (if ((u != 0)) | |
104 | 107 | then true | |
105 | 108 | else (r != "")) | |
106 | 109 | then !(isDefined(addressFromString(r))) | |
107 | 110 | else false) | |
108 | 111 | then throw("Address 3 is invalid") | |
109 | 112 | else if ((((s + t) + u) > 85)) | |
110 | 113 | then throw("Sum of shares should be smaller or equal then 85") | |
111 | 114 | else [StringEntry((o + "_creator_address1"), p), StringEntry((o + "_creator_address2"), q), StringEntry((o + "_creator_address3"), r), IntegerEntry((o + "_creator_share1"), s), IntegerEntry((o + "_creator_share2"), t), IntegerEntry((o + "_creator_share3"), u)] | |
112 | 115 | ||
113 | 116 | ||
114 | 117 | ||
115 | 118 | @Callable(m) | |
116 | - | func payFeeResell ( | |
119 | + | func payFeeResell (w,x) = if (!(containsElement(l, m.caller))) | |
117 | 120 | then throw("Not allowed") | |
118 | 121 | else { | |
119 | - | let x = 3 | |
120 | - | let y = value(m.payments[0].amount) | |
121 | - | let z = value(m.payments[0].assetId) | |
122 | - | let A = f((v + "_creator_share1")) | |
123 | - | let B = f((v + "_creator_share2")) | |
124 | - | let C = f((v + "_creator_share3")) | |
125 | - | let D = b((v + "_creator_address1")) | |
126 | - | let E = b((v + "_creator_address2")) | |
127 | - | let F = b((v + "_creator_address3")) | |
128 | - | let G = if ((D == "")) | |
129 | - | then 0 | |
130 | - | else fraction(y, A, 100) | |
122 | + | let y = 3 | |
123 | + | let z = value(m.payments[0].amount) | |
124 | + | let A = value(m.payments[0].assetId) | |
125 | + | let B = f((w + "_creator_share1")) | |
126 | + | let C = f((w + "_creator_share2")) | |
127 | + | let D = f((w + "_creator_share3")) | |
128 | + | let E = b((w + "_creator_address1")) | |
129 | + | let F = b((w + "_creator_address2")) | |
130 | + | let G = b((w + "_creator_address3")) | |
131 | 131 | let H = if ((E == "")) | |
132 | 132 | then 0 | |
133 | - | else fraction( | |
133 | + | else fraction(z, B, 100) | |
134 | 134 | let I = if ((F == "")) | |
135 | 135 | then 0 | |
136 | - | else fraction( | |
137 | - | let J = | |
138 | - | | |
139 | - | | |
140 | - | let | |
141 | - | | |
142 | - | | |
136 | + | else fraction(z, C, 100) | |
137 | + | let J = if ((G == "")) | |
138 | + | then 0 | |
139 | + | else fraction(z, D, 100) | |
140 | + | let K = fraction(z, y, 100) | |
141 | + | let L = ((((z - H) - I) - J) - K) | |
142 | + | let M = [ScriptTransfer(addressFromStringValue(k), K, m.payments[0].assetId)] | |
143 | 143 | let N = if ((E == "")) | |
144 | 144 | then nil | |
145 | 145 | else [ScriptTransfer(addressFromStringValue(E), H, m.payments[0].assetId)] | |
146 | 146 | let O = if ((F == "")) | |
147 | 147 | then nil | |
148 | 148 | else [ScriptTransfer(addressFromStringValue(F), I, m.payments[0].assetId)] | |
149 | - | let P = if (( | |
149 | + | let P = if ((G == "")) | |
150 | 150 | then nil | |
151 | - | else [ScriptTransfer(addressFromStringValue(w), K, m.payments[0].assetId)] | |
152 | - | ((((M ++ N) ++ O) ++ L) ++ P) | |
151 | + | else [ScriptTransfer(addressFromStringValue(G), J, m.payments[0].assetId)] | |
152 | + | let Q = if ((x == "")) | |
153 | + | then nil | |
154 | + | else [ScriptTransfer(addressFromStringValue(x), L, m.payments[0].assetId)] | |
155 | + | ((((N ++ O) ++ P) ++ M) ++ Q) | |
153 | 156 | } | |
154 | 157 | ||
155 | 158 | ||
156 | 159 | ||
157 | 160 | @Callable(m) | |
158 | - | func payFee ( | |
161 | + | func payFee (w,x) = if (!(containsElement(l, m.caller))) | |
159 | 162 | then throw("Not allowed") | |
160 | 163 | else { | |
161 | - | let y = value(m.payments[0].amount) | |
162 | - | let z = value(m.payments[0].assetId) | |
163 | - | let Q = f((v + "_team_share1")) | |
164 | - | let R = f((v + "_team_share2")) | |
165 | - | let S = f((v + "_team_share3")) | |
166 | - | let T = b((v + "_team_address1")) | |
167 | - | let U = b((v + "_team_address2")) | |
168 | - | let V = b((v + "_team_address3")) | |
169 | - | let A = f((v + "_creator_address1")) | |
170 | - | let B = f((v + "_creator_address2")) | |
171 | - | let C = f((v + "_creator_address3")) | |
172 | - | let D = b((v + "_creator_address1")) | |
173 | - | let E = b((v + "_creator_address2")) | |
174 | - | let F = b((v + "_creator_address3")) | |
175 | - | let W = if ((T == "")) | |
176 | - | then 0 | |
177 | - | else fraction(y, Q, 100) | |
164 | + | let z = value(m.payments[0].amount) | |
165 | + | let A = value(m.payments[0].assetId) | |
166 | + | let R = f((w + "_team_share1")) | |
167 | + | let S = f((w + "_team_share2")) | |
168 | + | let T = f((w + "_team_share3")) | |
169 | + | let U = b((w + "_team_address1")) | |
170 | + | let V = b((w + "_team_address2")) | |
171 | + | let W = b((w + "_team_address3")) | |
172 | + | let B = f((w + "_creator_address1")) | |
173 | + | let C = f((w + "_creator_address2")) | |
174 | + | let D = f((w + "_creator_address3")) | |
175 | + | let E = b((w + "_creator_address1")) | |
176 | + | let F = b((w + "_creator_address2")) | |
177 | + | let G = b((w + "_creator_address3")) | |
178 | 178 | let X = if ((U == "")) | |
179 | 179 | then 0 | |
180 | - | else fraction( | |
180 | + | else fraction(z, R, 100) | |
181 | 181 | let Y = if ((V == "")) | |
182 | 182 | then 0 | |
183 | - | else fraction( | |
184 | - | let | |
183 | + | else fraction(z, S, 100) | |
184 | + | let Z = if ((W == "")) | |
185 | 185 | then 0 | |
186 | - | else fraction( | |
186 | + | else fraction(z, T, 100) | |
187 | 187 | let H = if ((E == "")) | |
188 | 188 | then 0 | |
189 | - | else fraction( | |
189 | + | else fraction(z, B, 100) | |
190 | 190 | let I = if ((F == "")) | |
191 | 191 | then 0 | |
192 | - | else fraction( | |
193 | - | let | |
194 | - | then | |
195 | - | else | |
192 | + | else fraction(z, C, 100) | |
193 | + | let J = if ((G == "")) | |
194 | + | then 0 | |
195 | + | else fraction(z, D, 100) | |
196 | 196 | let aa = if ((U == "")) | |
197 | 197 | then nil | |
198 | 198 | else [ScriptTransfer(addressFromStringValue(U), X, m.payments[0].assetId)] | |
199 | 199 | let ab = if ((V == "")) | |
200 | 200 | then nil | |
201 | 201 | else [ScriptTransfer(addressFromStringValue(V), Y, m.payments[0].assetId)] | |
202 | - | let | |
202 | + | let ac = if ((W == "")) | |
203 | 203 | then nil | |
204 | - | else [ScriptTransfer(addressFromStringValue( | |
204 | + | else [ScriptTransfer(addressFromStringValue(W), Z, m.payments[0].assetId)] | |
205 | 205 | let N = if ((E == "")) | |
206 | 206 | then nil | |
207 | 207 | else [ScriptTransfer(addressFromStringValue(E), H, m.payments[0].assetId)] | |
208 | 208 | let O = if ((F == "")) | |
209 | 209 | then nil | |
210 | 210 | else [ScriptTransfer(addressFromStringValue(F), I, m.payments[0].assetId)] | |
211 | - | let K = ((((((y - G) - H) - I) - W) - X) - Y) | |
212 | - | let P = if ((w == "")) | |
211 | + | let P = if ((G == "")) | |
213 | 212 | then nil | |
214 | - | else [ScriptTransfer(addressFromStringValue(w), K, m.payments[0].assetId)] | |
215 | - | ((((((Z ++ aa) ++ ab) ++ M) ++ N) ++ O) ++ P) | |
213 | + | else [ScriptTransfer(addressFromStringValue(G), J, m.payments[0].assetId)] | |
214 | + | let L = ((((((z - H) - I) - J) - X) - Y) - Z) | |
215 | + | let Q = if ((x == "")) | |
216 | + | then nil | |
217 | + | else [ScriptTransfer(addressFromStringValue(x), L, m.payments[0].assetId)] | |
218 | + | ((((((aa ++ ab) ++ ac) ++ N) ++ O) ++ P) ++ Q) | |
216 | 219 | } | |
217 | 220 | ||
218 | 221 |
github/deemru/w8io/026f985 53.68 ms ◑