tx · BLWsZWtpea4nCN2ce8NVcXRB9qDwCEPQ6ygxZLzCVCQD

3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo:  -0.01400000 Waves

2022.05.19 19:14 [2058779] smart account 3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo > SELF 0.00000000 Waves

{ "type": 13, "id": "BLWsZWtpea4nCN2ce8NVcXRB9qDwCEPQ6ygxZLzCVCQD", "fee": 1400000, "feeAssetId": null, "timestamp": 1652976886774, "version": 2, "chainId": 84, "sender": "3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo", "senderPublicKey": "8Gc2RCQPWrzPyyDuKYbKYRCrEHXZSYqCAdiiRQAooSZ6", "proofs": [ "5hnDuV3mnnxvKbGfb5JWLZsm33ih33ShFj5ZzeMHjHL9RtrsxFoYvRuny75g7KJJyZ1NYEMTiBTnRFgov38kGL9i" ], "script": "base64:AAIFAAAAAAAAACkIAhIDCgEIEgkKBwgICAgBAQESCQoHCAgICAEBARIECgIICBIECgIICAAAAAkAAAAACW9yYWNsZUtleQIAAAAJb3JhY2xlS2V5AQAAAAZnZXRTdHIAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAAAQAAAAZnZXRJbnQAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgAAAAAAAAAAAAAAAAAGb3JhY2xlCQEAAAAGZ2V0U3RyAAAAAQUAAAAJb3JhY2xlS2V5AAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAAGb3JhY2xlAAAAAApzY29uZXhEYXBwCQAEJgAAAAEJAQAAABN2YWx1Z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uaWwEAAAADHNlbGxlclJld2FyZAkAAGUAAAACCQAAZQAAAAIJAABlAAAAAgkAAGUAAAACCQAAZQAAAAIJAABlAAAAAgUAAAAGYW1vdW50BQAAABVhZGRyZXNzMUNyZWF0b3JSZXdhcmQFAAAAFWFkZHJlc3MyQ3JlYXRvclJld2FyZAUAAAAVYWRkcmVzczNDcmVhdG9yUmV3YXJkBQAAABJhZGRyZXNzMVRlYW1SZXdhcmQFAAAAEmFkZHJlc3MyVGVhbVJld2FyZAUAAAASYWRkcmVzczNUZWFtUmV3YXJkBAAAABRzY3JpcHRUcmFuc2ZlclNlbGxlcgMJAAAAAAAAAgUAAAAGc2VsbGVyAgAAAAAFAAAAA25pbAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAZzZWxsZXIFAAAADHNlbGxlclJld2FyZAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAUAAAADbmlsCQAETgAAAAIJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgkABE4AAAACBQAAABpzY3JpcHRUcmFuc2ZlckFkZHJlc3NUZWFtMQUAAAAac2NyaXB0VHJhbnNmZXJBZGRyZXNzVGVhbTIFAAAAGnNjcmlwdFRyYW5zZmVyQWRkcmVzc1RlYW0zBQAAABZzY3JpcHRUcmFuc2ZlckFkZHJlc3MxBQAAABZzY3JpcHRUcmFuc2ZlckFkZHJlc3MyBQAAABZzY3JpcHRUcmFuc2ZlckFkZHJlc3MzBQAAABRzY3JpcHRUcmFuc2ZlclNlbGxlcgAAAADZ4p8i", "height": 2058779, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6jC6PRhKzTfdz4HnJZwQRHAj9Q8tm1YUUpUvGBx77iPW Next: c3uGWJhhts393CHn2FfBQCy3J2Kt4jWC9mJBWoUvSKP Diff:
OldNewDifferences
3131
3232 let i = addressFromString(valueOrErrorMessage(getString(h, "sconexDapp"), "sconexDapp not found"))
3333
34-let j = valueOrErrorMessage(getString(h, "feeReceiver"), "feeReceiver not found")
34+let j = addressFromString(valueOrErrorMessage(getString(h, "resellDapp"), "resellDapp not found"))
3535
36-let k = [i]
36+let k = valueOrErrorMessage(getString(h, "feeReceiver"), "feeReceiver not found")
3737
38-@Callable(l)
39-func initDapp (m) = if ((l.caller != this))
38+let l = [i, j]
39+
40+@Callable(m)
41+func initDapp (n) = if ((m.caller != this))
4042 then throw("You cannot do this action")
4143 else if ((g != ""))
4244 then throw("oracle already set, you can't override!")
43- else [StringEntry(a, m)]
45+ else [StringEntry(a, n)]
4446
4547
4648
47-@Callable(l)
48-func teamSplitFee (n,o,p,q,r,s,t) = if (!(containsElement(k, l.caller)))
49+@Callable(m)
50+func teamSplitFee (o,p,q,r,s,t,u) = if (!(containsElement(l, m.caller)))
4951 then throw("Not allowed")
50- else if ((0 > r))
52+ else if ((0 > s))
5153 then throw("Share 1 can't be negative")
52- else if (if (if ((r != 0))
54+ else if (if (if ((s != 0))
5355 then true
54- else (o != ""))
55- then !(isDefined(addressFromString(o)))
56+ else (p != ""))
57+ then !(isDefined(addressFromString(p)))
5658 else false)
5759 then throw("Address 1 is invalid")
58- else if ((0 > s))
60+ else if ((0 > t))
5961 then throw("Share 2 can't be negative")
60- else if (if (if ((s != 0))
62+ else if (if (if ((t != 0))
6163 then true
62- else (p != ""))
63- then !(isDefined(addressFromString(p)))
64+ else (q != ""))
65+ then !(isDefined(addressFromString(q)))
6466 else false)
6567 then throw("Address 2 is invalid")
66- else if ((0 > t))
68+ else if ((0 > u))
6769 then throw("Share 3 can't be negative")
68- else if (if (if ((t != 0))
70+ else if (if (if ((u != 0))
6971 then true
70- else (q != ""))
71- then !(isDefined(addressFromString(q)))
72+ else (r != ""))
73+ then !(isDefined(addressFromString(r)))
7274 else false)
7375 then throw("Address 3 is invalid")
74- else if ((((r + s) + t) != 15))
76+ else if ((((s + t) + u) != 15))
7577 then throw("Sum of shares should be equal to 15")
76- else [StringEntry((n + "_team_address1"), o), StringEntry((n + "_team_address2"), p), StringEntry((n + "_team_address3"), q), IntegerEntry((n + "_team_share1"), r), IntegerEntry((n + "_team_share2"), s), IntegerEntry((n + "_team_share3"), t)]
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)]
7779
7880
7981
80-@Callable(l)
81-func creatorSplitFee (n,o,p,q,r,s,t) = if (!(containsElement(k, l.caller)))
82+@Callable(m)
83+func creatorSplitFee (o,p,q,r,s,t,u) = if (!(containsElement(l, m.caller)))
8284 then throw("Not allowed")
83- else if ((0 > r))
85+ else if ((0 > s))
8486 then throw("Share 1 can't be negative")
85- else if (if (if ((r != 0))
87+ else if (if (if ((s != 0))
8688 then true
87- else (o != ""))
88- then !(isDefined(addressFromString(o)))
89+ else (p != ""))
90+ then !(isDefined(addressFromString(p)))
8991 else false)
9092 then throw("Address 1 is invalid")
91- else if ((0 > s))
93+ else if ((0 > t))
9294 then throw("Share 2 can't be negative")
93- else if (if (if ((s != 0))
95+ else if (if (if ((t != 0))
9496 then true
95- else (p != ""))
96- then !(isDefined(addressFromString(p)))
97+ else (q != ""))
98+ then !(isDefined(addressFromString(q)))
9799 else false)
98100 then throw("Address 2 is invalid")
99- else if ((0 > t))
101+ else if ((0 > u))
100102 then throw("Share 3 can't be negative")
101- else if (if (if ((t != 0))
103+ else if (if (if ((u != 0))
102104 then true
103- else (q != ""))
104- then !(isDefined(addressFromString(q)))
105+ else (r != ""))
106+ then !(isDefined(addressFromString(r)))
105107 else false)
106108 then throw("Address 3 is invalid")
107- else if ((((r + s) + t) > 85))
109+ else if ((((s + t) + u) > 85))
108110 then throw("Sum of shares should be smaller or equal then 85")
109- else [StringEntry((n + "_creator_address1"), o), StringEntry((n + "_creator_address2"), p), StringEntry((n + "_creator_address3"), q), IntegerEntry((n + "_creator_share1"), r), IntegerEntry((n + "_creator_share2"), s), IntegerEntry((n + "_creator_share3"), t)]
111+ 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)]
110112
111113
112114
113-@Callable(l)
114-func payFeeResell (u,v) = if (!(containsElement(k, l.caller)))
115+@Callable(m)
116+func payFeeResell (v,w) = if (!(containsElement(l, m.caller)))
115117 then throw("Not allowed")
116118 else {
117- let w = 3
118- let x = value(l.payments[0].amount)
119- let y = value(l.payments[0].assetId)
120- let z = f((u + "_creator_share1"))
121- let A = f((u + "_creator_share2"))
122- let B = f((u + "_creator_share3"))
123- let C = b((u + "_creator_address1"))
124- let D = b((u + "_creator_address2"))
125- let E = b((u + "_creator_address3"))
126- let F = if ((C == ""))
127- then 0
128- else fraction(x, z, 100)
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"))
129128 let G = if ((D == ""))
130129 then 0
131- else fraction(x, A, 100)
130+ else fraction(y, A, 100)
132131 let H = if ((E == ""))
133132 then 0
134- else fraction(x, B, 100)
135- let I = fraction(x, w, 100)
136- let J = ((((x - F) - G) - H) - I)
137- let K = [ScriptTransfer(addressFromStringValue(j), I, l.payments[0].assetId)]
138- let L = if ((C == ""))
139- then nil
140- else [ScriptTransfer(addressFromStringValue(C), F, l.payments[0].assetId)]
133+ else fraction(y, B, 100)
134+ let I = if ((F == ""))
135+ then 0
136+ else fraction(y, C, 100)
137+ let J = fraction(y, x, 100)
138+ let K = ((((y - G) - H) - I) - J)
139+ let L = [ScriptTransfer(addressFromStringValue(k), J, m.payments[0].assetId)]
141140 let M = if ((D == ""))
142141 then nil
143- else [ScriptTransfer(addressFromStringValue(D), G, l.payments[0].assetId)]
142+ else [ScriptTransfer(addressFromStringValue(D), G, m.payments[0].assetId)]
144143 let N = if ((E == ""))
145144 then nil
146- else [ScriptTransfer(addressFromStringValue(E), H, l.payments[0].assetId)]
147- let O = if ((v == ""))
145+ else [ScriptTransfer(addressFromStringValue(E), H, m.payments[0].assetId)]
146+ let O = if ((F == ""))
148147 then nil
149- else [ScriptTransfer(addressFromStringValue(v), J, l.payments[0].assetId)]
150- ((((L ++ M) ++ N) ++ K) ++ O)
148+ else [ScriptTransfer(addressFromStringValue(F), I, m.payments[0].assetId)]
149+ let P = if ((w == ""))
150+ then nil
151+ else [ScriptTransfer(addressFromStringValue(w), K, m.payments[0].assetId)]
152+ ((((M ++ N) ++ O) ++ L) ++ P)
151153 }
152154
153155
154156
155-@Callable(l)
156-func payFee (u,v) = if (!(containsElement(k, l.caller)))
157+@Callable(m)
158+func payFee (v,w) = if (!(containsElement(l, m.caller)))
157159 then throw("Not allowed")
158160 else {
159- let x = value(l.payments[0].amount)
160- let y = value(l.payments[0].assetId)
161- let P = f((u + "_team_share1"))
162- let Q = f((u + "_team_share2"))
163- let R = f((u + "_team_share3"))
164- let S = b((u + "_team_address1"))
165- let T = b((u + "_team_address2"))
166- let U = b((u + "_team_address3"))
167- let z = f((u + "_creator_address1"))
168- let A = f((u + "_creator_address2"))
169- let B = f((u + "_creator_address3"))
170- let C = b((u + "_creator_address1"))
171- let D = b((u + "_creator_address2"))
172- let E = b((u + "_creator_address3"))
173- let V = if ((S == ""))
174- then 0
175- else fraction(x, P, 100)
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"))
176175 let W = if ((T == ""))
177176 then 0
178- else fraction(x, Q, 100)
177+ else fraction(y, Q, 100)
179178 let X = if ((U == ""))
180179 then 0
181- else fraction(x, R, 100)
182- let F = if ((C == ""))
180+ else fraction(y, R, 100)
181+ let Y = if ((V == ""))
183182 then 0
184- else fraction(x, z, 100)
183+ else fraction(y, S, 100)
185184 let G = if ((D == ""))
186185 then 0
187- else fraction(x, A, 100)
186+ else fraction(y, A, 100)
188187 let H = if ((E == ""))
189188 then 0
190- else fraction(x, B, 100)
191- let Y = if ((S == ""))
192- then nil
193- else [ScriptTransfer(addressFromStringValue(S), V, l.payments[0].assetId)]
189+ else fraction(y, B, 100)
190+ let I = if ((F == ""))
191+ then 0
192+ else fraction(y, C, 100)
194193 let Z = if ((T == ""))
195194 then nil
196- else [ScriptTransfer(addressFromStringValue(T), W, l.payments[0].assetId)]
195+ else [ScriptTransfer(addressFromStringValue(T), W, m.payments[0].assetId)]
197196 let aa = if ((U == ""))
198197 then nil
199- else [ScriptTransfer(addressFromStringValue(U), X, l.payments[0].assetId)]
200- let L = if ((C == ""))
198+ else [ScriptTransfer(addressFromStringValue(U), X, m.payments[0].assetId)]
199+ let ab = if ((V == ""))
201200 then nil
202- else [ScriptTransfer(addressFromStringValue(C), F, l.payments[0].assetId)]
201+ else [ScriptTransfer(addressFromStringValue(V), Y, m.payments[0].assetId)]
203202 let M = if ((D == ""))
204203 then nil
205- else [ScriptTransfer(addressFromStringValue(D), G, l.payments[0].assetId)]
204+ else [ScriptTransfer(addressFromStringValue(D), G, m.payments[0].assetId)]
206205 let N = if ((E == ""))
207206 then nil
208- else [ScriptTransfer(addressFromStringValue(E), H, l.payments[0].assetId)]
209- let J = ((((((x - F) - G) - H) - V) - W) - X)
210- let O = if ((v == ""))
207+ else [ScriptTransfer(addressFromStringValue(E), H, m.payments[0].assetId)]
208+ let O = if ((F == ""))
211209 then nil
212- else [ScriptTransfer(addressFromStringValue(v), J, l.payments[0].assetId)]
213- ((((((Y ++ Z) ++ aa) ++ L) ++ M) ++ N) ++ O)
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 == ""))
213+ then nil
214+ else [ScriptTransfer(addressFromStringValue(w), K, m.payments[0].assetId)]
215+ ((((((Z ++ aa) ++ ab) ++ M) ++ N) ++ O) ++ P)
214216 }
215217
216218
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "oracleKey"
55
66 func b (c) = {
77 let d = getString(this, c)
88 if ($isInstanceOf(d, "String"))
99 then {
1010 let e = d
1111 e
1212 }
1313 else ""
1414 }
1515
1616
1717 func f (c) = {
1818 let d = getInteger(this, c)
1919 if ($isInstanceOf(d, "Int"))
2020 then {
2121 let e = d
2222 e
2323 }
2424 else 0
2525 }
2626
2727
2828 let g = b(a)
2929
3030 let h = value(addressFromString(g))
3131
3232 let i = addressFromString(valueOrErrorMessage(getString(h, "sconexDapp"), "sconexDapp not found"))
3333
34-let j = valueOrErrorMessage(getString(h, "feeReceiver"), "feeReceiver not found")
34+let j = addressFromString(valueOrErrorMessage(getString(h, "resellDapp"), "resellDapp not found"))
3535
36-let k = [i]
36+let k = valueOrErrorMessage(getString(h, "feeReceiver"), "feeReceiver not found")
3737
38-@Callable(l)
39-func initDapp (m) = if ((l.caller != this))
38+let l = [i, j]
39+
40+@Callable(m)
41+func initDapp (n) = if ((m.caller != this))
4042 then throw("You cannot do this action")
4143 else if ((g != ""))
4244 then throw("oracle already set, you can't override!")
43- else [StringEntry(a, m)]
45+ else [StringEntry(a, n)]
4446
4547
4648
47-@Callable(l)
48-func teamSplitFee (n,o,p,q,r,s,t) = if (!(containsElement(k, l.caller)))
49+@Callable(m)
50+func teamSplitFee (o,p,q,r,s,t,u) = if (!(containsElement(l, m.caller)))
4951 then throw("Not allowed")
50- else if ((0 > r))
52+ else if ((0 > s))
5153 then throw("Share 1 can't be negative")
52- else if (if (if ((r != 0))
54+ else if (if (if ((s != 0))
5355 then true
54- else (o != ""))
55- then !(isDefined(addressFromString(o)))
56+ else (p != ""))
57+ then !(isDefined(addressFromString(p)))
5658 else false)
5759 then throw("Address 1 is invalid")
58- else if ((0 > s))
60+ else if ((0 > t))
5961 then throw("Share 2 can't be negative")
60- else if (if (if ((s != 0))
62+ else if (if (if ((t != 0))
6163 then true
62- else (p != ""))
63- then !(isDefined(addressFromString(p)))
64+ else (q != ""))
65+ then !(isDefined(addressFromString(q)))
6466 else false)
6567 then throw("Address 2 is invalid")
66- else if ((0 > t))
68+ else if ((0 > u))
6769 then throw("Share 3 can't be negative")
68- else if (if (if ((t != 0))
70+ else if (if (if ((u != 0))
6971 then true
70- else (q != ""))
71- then !(isDefined(addressFromString(q)))
72+ else (r != ""))
73+ then !(isDefined(addressFromString(r)))
7274 else false)
7375 then throw("Address 3 is invalid")
74- else if ((((r + s) + t) != 15))
76+ else if ((((s + t) + u) != 15))
7577 then throw("Sum of shares should be equal to 15")
76- else [StringEntry((n + "_team_address1"), o), StringEntry((n + "_team_address2"), p), StringEntry((n + "_team_address3"), q), IntegerEntry((n + "_team_share1"), r), IntegerEntry((n + "_team_share2"), s), IntegerEntry((n + "_team_share3"), t)]
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)]
7779
7880
7981
80-@Callable(l)
81-func creatorSplitFee (n,o,p,q,r,s,t) = if (!(containsElement(k, l.caller)))
82+@Callable(m)
83+func creatorSplitFee (o,p,q,r,s,t,u) = if (!(containsElement(l, m.caller)))
8284 then throw("Not allowed")
83- else if ((0 > r))
85+ else if ((0 > s))
8486 then throw("Share 1 can't be negative")
85- else if (if (if ((r != 0))
87+ else if (if (if ((s != 0))
8688 then true
87- else (o != ""))
88- then !(isDefined(addressFromString(o)))
89+ else (p != ""))
90+ then !(isDefined(addressFromString(p)))
8991 else false)
9092 then throw("Address 1 is invalid")
91- else if ((0 > s))
93+ else if ((0 > t))
9294 then throw("Share 2 can't be negative")
93- else if (if (if ((s != 0))
95+ else if (if (if ((t != 0))
9496 then true
95- else (p != ""))
96- then !(isDefined(addressFromString(p)))
97+ else (q != ""))
98+ then !(isDefined(addressFromString(q)))
9799 else false)
98100 then throw("Address 2 is invalid")
99- else if ((0 > t))
101+ else if ((0 > u))
100102 then throw("Share 3 can't be negative")
101- else if (if (if ((t != 0))
103+ else if (if (if ((u != 0))
102104 then true
103- else (q != ""))
104- then !(isDefined(addressFromString(q)))
105+ else (r != ""))
106+ then !(isDefined(addressFromString(r)))
105107 else false)
106108 then throw("Address 3 is invalid")
107- else if ((((r + s) + t) > 85))
109+ else if ((((s + t) + u) > 85))
108110 then throw("Sum of shares should be smaller or equal then 85")
109- else [StringEntry((n + "_creator_address1"), o), StringEntry((n + "_creator_address2"), p), StringEntry((n + "_creator_address3"), q), IntegerEntry((n + "_creator_share1"), r), IntegerEntry((n + "_creator_share2"), s), IntegerEntry((n + "_creator_share3"), t)]
111+ 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)]
110112
111113
112114
113-@Callable(l)
114-func payFeeResell (u,v) = if (!(containsElement(k, l.caller)))
115+@Callable(m)
116+func payFeeResell (v,w) = if (!(containsElement(l, m.caller)))
115117 then throw("Not allowed")
116118 else {
117- let w = 3
118- let x = value(l.payments[0].amount)
119- let y = value(l.payments[0].assetId)
120- let z = f((u + "_creator_share1"))
121- let A = f((u + "_creator_share2"))
122- let B = f((u + "_creator_share3"))
123- let C = b((u + "_creator_address1"))
124- let D = b((u + "_creator_address2"))
125- let E = b((u + "_creator_address3"))
126- let F = if ((C == ""))
127- then 0
128- else fraction(x, z, 100)
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"))
129128 let G = if ((D == ""))
130129 then 0
131- else fraction(x, A, 100)
130+ else fraction(y, A, 100)
132131 let H = if ((E == ""))
133132 then 0
134- else fraction(x, B, 100)
135- let I = fraction(x, w, 100)
136- let J = ((((x - F) - G) - H) - I)
137- let K = [ScriptTransfer(addressFromStringValue(j), I, l.payments[0].assetId)]
138- let L = if ((C == ""))
139- then nil
140- else [ScriptTransfer(addressFromStringValue(C), F, l.payments[0].assetId)]
133+ else fraction(y, B, 100)
134+ let I = if ((F == ""))
135+ then 0
136+ else fraction(y, C, 100)
137+ let J = fraction(y, x, 100)
138+ let K = ((((y - G) - H) - I) - J)
139+ let L = [ScriptTransfer(addressFromStringValue(k), J, m.payments[0].assetId)]
141140 let M = if ((D == ""))
142141 then nil
143- else [ScriptTransfer(addressFromStringValue(D), G, l.payments[0].assetId)]
142+ else [ScriptTransfer(addressFromStringValue(D), G, m.payments[0].assetId)]
144143 let N = if ((E == ""))
145144 then nil
146- else [ScriptTransfer(addressFromStringValue(E), H, l.payments[0].assetId)]
147- let O = if ((v == ""))
145+ else [ScriptTransfer(addressFromStringValue(E), H, m.payments[0].assetId)]
146+ let O = if ((F == ""))
148147 then nil
149- else [ScriptTransfer(addressFromStringValue(v), J, l.payments[0].assetId)]
150- ((((L ++ M) ++ N) ++ K) ++ O)
148+ else [ScriptTransfer(addressFromStringValue(F), I, m.payments[0].assetId)]
149+ let P = if ((w == ""))
150+ then nil
151+ else [ScriptTransfer(addressFromStringValue(w), K, m.payments[0].assetId)]
152+ ((((M ++ N) ++ O) ++ L) ++ P)
151153 }
152154
153155
154156
155-@Callable(l)
156-func payFee (u,v) = if (!(containsElement(k, l.caller)))
157+@Callable(m)
158+func payFee (v,w) = if (!(containsElement(l, m.caller)))
157159 then throw("Not allowed")
158160 else {
159- let x = value(l.payments[0].amount)
160- let y = value(l.payments[0].assetId)
161- let P = f((u + "_team_share1"))
162- let Q = f((u + "_team_share2"))
163- let R = f((u + "_team_share3"))
164- let S = b((u + "_team_address1"))
165- let T = b((u + "_team_address2"))
166- let U = b((u + "_team_address3"))
167- let z = f((u + "_creator_address1"))
168- let A = f((u + "_creator_address2"))
169- let B = f((u + "_creator_address3"))
170- let C = b((u + "_creator_address1"))
171- let D = b((u + "_creator_address2"))
172- let E = b((u + "_creator_address3"))
173- let V = if ((S == ""))
174- then 0
175- else fraction(x, P, 100)
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"))
176175 let W = if ((T == ""))
177176 then 0
178- else fraction(x, Q, 100)
177+ else fraction(y, Q, 100)
179178 let X = if ((U == ""))
180179 then 0
181- else fraction(x, R, 100)
182- let F = if ((C == ""))
180+ else fraction(y, R, 100)
181+ let Y = if ((V == ""))
183182 then 0
184- else fraction(x, z, 100)
183+ else fraction(y, S, 100)
185184 let G = if ((D == ""))
186185 then 0
187- else fraction(x, A, 100)
186+ else fraction(y, A, 100)
188187 let H = if ((E == ""))
189188 then 0
190- else fraction(x, B, 100)
191- let Y = if ((S == ""))
192- then nil
193- else [ScriptTransfer(addressFromStringValue(S), V, l.payments[0].assetId)]
189+ else fraction(y, B, 100)
190+ let I = if ((F == ""))
191+ then 0
192+ else fraction(y, C, 100)
194193 let Z = if ((T == ""))
195194 then nil
196- else [ScriptTransfer(addressFromStringValue(T), W, l.payments[0].assetId)]
195+ else [ScriptTransfer(addressFromStringValue(T), W, m.payments[0].assetId)]
197196 let aa = if ((U == ""))
198197 then nil
199- else [ScriptTransfer(addressFromStringValue(U), X, l.payments[0].assetId)]
200- let L = if ((C == ""))
198+ else [ScriptTransfer(addressFromStringValue(U), X, m.payments[0].assetId)]
199+ let ab = if ((V == ""))
201200 then nil
202- else [ScriptTransfer(addressFromStringValue(C), F, l.payments[0].assetId)]
201+ else [ScriptTransfer(addressFromStringValue(V), Y, m.payments[0].assetId)]
203202 let M = if ((D == ""))
204203 then nil
205- else [ScriptTransfer(addressFromStringValue(D), G, l.payments[0].assetId)]
204+ else [ScriptTransfer(addressFromStringValue(D), G, m.payments[0].assetId)]
206205 let N = if ((E == ""))
207206 then nil
208- else [ScriptTransfer(addressFromStringValue(E), H, l.payments[0].assetId)]
209- let J = ((((((x - F) - G) - H) - V) - W) - X)
210- let O = if ((v == ""))
207+ else [ScriptTransfer(addressFromStringValue(E), H, m.payments[0].assetId)]
208+ let O = if ((F == ""))
211209 then nil
212- else [ScriptTransfer(addressFromStringValue(v), J, l.payments[0].assetId)]
213- ((((((Y ++ Z) ++ aa) ++ L) ++ M) ++ N) ++ O)
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 == ""))
213+ then nil
214+ else [ScriptTransfer(addressFromStringValue(w), K, m.payments[0].assetId)]
215+ ((((((Z ++ aa) ++ ab) ++ M) ++ N) ++ O) ++ P)
214216 }
215217
216218

github/deemru/w8io/026f985 
64.61 ms