tx · GjU8Dof6jPGc9x6eSXTM3gM11F5A9fzsUu22DGwJkY7H

3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo:  -0.01400000 Waves

2022.04.04 18:29 [1994028] smart account 3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo > SELF 0.00000000 Waves

{ "type": 13, "id": "GjU8Dof6jPGc9x6eSXTM3gM11F5A9fzsUu22DGwJkY7H", "fee": 1400000, "feeAssetId": null, "timestamp": 1649086190182, "version": 2, "chainId": 84, "sender": "3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo", "senderPublicKey": "8Gc2RCQPWrzPyyDuKYbKYRCrEHXZSYqCAdiiRQAooSZ6", "proofs": [ "47pSt56iTeX3pFtTvxU7nrQgZp9knkeej1aHXpqt9p4hdtqR3hTjiqxfhZWBdUraxQLoiJNc7NCMCGyU88dNxfP9" ], "script": "base64:AAIFAAAAAAAAACkIAhIDCgEIEgkKBwgICAgBAQESCQoHCAgICAEBARIECgIICBIECgIICAAAAAgAAAAACW9yYWNsZUtleQIAAAAJb3JhY2xlS2V5AQAAAAZnZXRTdHIAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAAAQAAAAZnZXRJbnQAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgAAAAAAAAAAAAAAAAAGb3JhY2xlCQEAAAAGZ2V0U3RyAAAAAQUAAAAJb3JhY2xlS2V5AAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAAGb3JhY2xlAAAAAApzY29uZXhEYXBwCQAEJgAAAAEJAQAAABN2YWx1ZU9yRXJ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4AAAACCQAETgAAAAIJAAROAAAAAgkABE4AAAACBQAAABpzY3JpcHRUcmFuc2ZlckFkZHJlc3NUZWFtMQUAAAAac2NyaXB0VHJhbnNmZXJBZGRyZXNzVGVhbTIFAAAAGnNjcmlwdFRyYW5zZmVyQWRkcmVzc1RlYW0zBQAAABZzY3JpcHRUcmFuc2ZlckFkZHJlc3MxBQAAABZzY3JpcHRUcmFuc2ZlckFkZHJlc3MyBQAAABZzY3JpcHRUcmFuc2ZlckFkZHJlc3MzBQAAABRzY3JpcHRUcmFuc2ZlclNlbGxlcgAAAAAVnLbf", "height": 1994028, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 525rX21efkgyZzHpkHWiVsKFifUKabMpZdrkd8z7g83S Next: NtQDmivhWU6gPqe75XuFuufdipDzoXeuwHfGVDaXEH5 Diff:
OldNewDifferences
7070 then throw("Not allowed")
7171 else if ((0 > address1Share))
7272 then throw("Share 1 can't be negative")
73- else if (if ((address1Share != 0))
73+ else if (if (if ((address1Share != 0))
74+ then true
75+ else (address1 != ""))
7476 then !(isDefined(addressFromString(address1)))
7577 else false)
7678 then throw("Address 1 is invalid")
7779 else if ((0 > address2Share))
7880 then throw("Share 2 can't be negative")
79- else if (if ((address2Share != 0))
81+ else if (if (if ((address2Share != 0))
82+ then true
83+ else (address2 != ""))
8084 then !(isDefined(addressFromString(address2)))
8185 else false)
8286 then throw("Address 2 is invalid")
8387 else if ((0 > address3Share))
8488 then throw("Share 3 can't be negative")
85- else if (if ((address3Share != 0))
89+ else if (if (if ((address3Share != 0))
90+ then true
91+ else (address3 != ""))
8692 then !(isDefined(addressFromString(address3)))
8793 else false)
8894 then throw("Address 3 is invalid")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let oracleKey = "oracleKey"
55
66 func getStr (key) = match getString(this, key) {
77 case b: String =>
88 b
99 case _ =>
1010 ""
1111 }
1212
1313
1414 func getInt (key) = match getInteger(this, key) {
1515 case b: Int =>
1616 b
1717 case _ =>
1818 0
1919 }
2020
2121
2222 let oracle = getStr(oracleKey)
2323
2424 let oracleFee = value(addressFromString(oracle))
2525
2626 let sconexDapp = addressFromString(valueOrErrorMessage(getString(oracleFee, "sconexDapp"), "sconexDapp not found"))
2727
2828 let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found")
2929
3030 let allowedDapps = [sconexDapp]
3131
3232 @Callable(i)
3333 func initDapp (dappKey) = if ((i.caller != this))
3434 then throw("You cannot do this action")
3535 else if ((oracle != ""))
3636 then throw("oracle already set, you can't override!")
3737 else [StringEntry(oracleKey, dappKey)]
3838
3939
4040
4141 @Callable(i)
4242 func teamSplitFee (artId,address1,address2,address3,address1Share,address2Share,address3Share) = if (!(containsElement(allowedDapps, i.caller)))
4343 then throw("Not allowed")
4444 else if ((0 > address1Share))
4545 then throw("Share 1 can't be negative")
4646 else if (if ((address1Share != 0))
4747 then !(isDefined(addressFromString(address1)))
4848 else false)
4949 then throw("Address 1 is invalid")
5050 else if ((0 > address2Share))
5151 then throw("Share 2 can't be negative")
5252 else if (if ((address2Share != 0))
5353 then !(isDefined(addressFromString(address2)))
5454 else false)
5555 then throw("Address 2 is invalid")
5656 else if ((0 > address3Share))
5757 then throw("Share 3 can't be negative")
5858 else if (if ((address3Share != 0))
5959 then !(isDefined(addressFromString(address3)))
6060 else false)
6161 then throw("Address 3 is invalid")
6262 else if ((((address1Share + address2Share) + address3Share) != 15))
6363 then throw("Sum of shares should be equal to 15")
6464 else [StringEntry((artId + "_team_address1"), address1), StringEntry((artId + "_team_address2"), address2), StringEntry((artId + "_team_address3"), address3), IntegerEntry((artId + "_team_share1"), address1Share), IntegerEntry((artId + "_team_share2"), address2Share), IntegerEntry((artId + "_team_share3"), address3Share)]
6565
6666
6767
6868 @Callable(i)
6969 func creatorSplitFee (artId,address1,address2,address3,address1Share,address2Share,address3Share) = if (!(containsElement(allowedDapps, i.caller)))
7070 then throw("Not allowed")
7171 else if ((0 > address1Share))
7272 then throw("Share 1 can't be negative")
73- else if (if ((address1Share != 0))
73+ else if (if (if ((address1Share != 0))
74+ then true
75+ else (address1 != ""))
7476 then !(isDefined(addressFromString(address1)))
7577 else false)
7678 then throw("Address 1 is invalid")
7779 else if ((0 > address2Share))
7880 then throw("Share 2 can't be negative")
79- else if (if ((address2Share != 0))
81+ else if (if (if ((address2Share != 0))
82+ then true
83+ else (address2 != ""))
8084 then !(isDefined(addressFromString(address2)))
8185 else false)
8286 then throw("Address 2 is invalid")
8387 else if ((0 > address3Share))
8488 then throw("Share 3 can't be negative")
85- else if (if ((address3Share != 0))
89+ else if (if (if ((address3Share != 0))
90+ then true
91+ else (address3 != ""))
8692 then !(isDefined(addressFromString(address3)))
8793 else false)
8894 then throw("Address 3 is invalid")
8995 else if ((((address1Share + address2Share) + address3Share) > 85))
9096 then throw("Sum of shares should be smaller or equal then 85")
9197 else [StringEntry((artId + "_creator_address1"), address1), StringEntry((artId + "_creator_address2"), address2), StringEntry((artId + "_creator_address3"), address3), IntegerEntry((artId + "_creator_share1"), address1Share), IntegerEntry((artId + "_creator_share2"), address2Share), IntegerEntry((artId + "_creator_share3"), address3Share)]
9298
9399
94100
95101 @Callable(i)
96102 func payFeeResell (txId,seller) = {
97103 let sconexFeePercentage = 3
98104 let amount = value(i.payments[0].amount)
99105 let assetId = value(i.payments[0].assetId)
100106 let address1ShareCreator = getInt((txId + "_creator_share1"))
101107 let address2ShareCreator = getInt((txId + "_creator_share2"))
102108 let address3ShareCreator = getInt((txId + "_creator_share3"))
103109 let address1Creator = getStr((txId + "_creator_address1"))
104110 let address2Creator = getStr((txId + "_creator_address2"))
105111 let address3Creator = getStr((txId + "_creator_address3"))
106112 let address1CreatorReward = if ((address1Creator == ""))
107113 then 0
108114 else fraction(amount, address1ShareCreator, 100)
109115 let address2CreatorReward = if ((address2Creator == ""))
110116 then 0
111117 else fraction(amount, address2ShareCreator, 100)
112118 let address3CreatorReward = if ((address3Creator == ""))
113119 then 0
114120 else fraction(amount, address3ShareCreator, 100)
115121 let sconexFeeReward = fraction(amount, sconexFeePercentage, 100)
116122 let sellerReward = ((((amount - address1CreatorReward) - address2CreatorReward) - address3CreatorReward) - sconexFeeReward)
117123 let scriptTransferFeeReceiver = [ScriptTransfer(addressFromStringValue(feeReceiver), sconexFeeReward, i.payments[0].assetId)]
118124 let scriptTransferAddress1 = if ((address1Creator == ""))
119125 then nil
120126 else [ScriptTransfer(addressFromStringValue(address1Creator), address1CreatorReward, i.payments[0].assetId)]
121127 let scriptTransferAddress2 = if ((address2Creator == ""))
122128 then nil
123129 else [ScriptTransfer(addressFromStringValue(address2Creator), address2CreatorReward, i.payments[0].assetId)]
124130 let scriptTransferAddress3 = if ((address3Creator == ""))
125131 then nil
126132 else [ScriptTransfer(addressFromStringValue(address3Creator), address3CreatorReward, i.payments[0].assetId)]
127133 let scriptTransferSeller = if ((seller == ""))
128134 then nil
129135 else [ScriptTransfer(addressFromStringValue(seller), sellerReward, i.payments[0].assetId)]
130136 ((((scriptTransferAddress1 ++ scriptTransferAddress2) ++ scriptTransferAddress3) ++ scriptTransferFeeReceiver) ++ scriptTransferSeller)
131137 }
132138
133139
134140
135141 @Callable(i)
136142 func payFee (txId,seller) = {
137143 let amount = value(i.payments[0].amount)
138144 let assetId = value(i.payments[0].assetId)
139145 let address1ShareTeam = getInt((txId + "_team_share1"))
140146 let address2ShareTeam = getInt((txId + "_team_share2"))
141147 let address3ShareTeam = getInt((txId + "_team_share3"))
142148 let address1Team = getStr((txId + "_team_address1"))
143149 let address2Team = getStr((txId + "_team_address2"))
144150 let address3Team = getStr((txId + "_team_address3"))
145151 let address1ShareCreator = getInt((txId + "_creator_address1"))
146152 let address2ShareCreator = getInt((txId + "_creator_address2"))
147153 let address3ShareCreator = getInt((txId + "_creator_address3"))
148154 let address1Creator = getStr((txId + "_creator_address1"))
149155 let address2Creator = getStr((txId + "_creator_address2"))
150156 let address3Creator = getStr((txId + "_creator_address3"))
151157 let address1TeamReward = if ((address1Team == ""))
152158 then 0
153159 else fraction(amount, address1ShareTeam, 100)
154160 let address2TeamReward = if ((address2Team == ""))
155161 then 0
156162 else fraction(amount, address2ShareTeam, 100)
157163 let address3TeamReward = if ((address3Team == ""))
158164 then 0
159165 else fraction(amount, address3ShareTeam, 100)
160166 let address1CreatorReward = if ((address1Creator == ""))
161167 then 0
162168 else fraction(amount, address1ShareCreator, 100)
163169 let address2CreatorReward = if ((address2Creator == ""))
164170 then 0
165171 else fraction(amount, address2ShareCreator, 100)
166172 let address3CreatorReward = if ((address3Creator == ""))
167173 then 0
168174 else fraction(amount, address3ShareCreator, 100)
169175 let scriptTransferAddressTeam1 = if ((address1Team == ""))
170176 then nil
171177 else [ScriptTransfer(addressFromStringValue(address1Team), address1TeamReward, i.payments[0].assetId)]
172178 let scriptTransferAddressTeam2 = if ((address2Team == ""))
173179 then nil
174180 else [ScriptTransfer(addressFromStringValue(address2Team), address2TeamReward, i.payments[0].assetId)]
175181 let scriptTransferAddressTeam3 = if ((address3Team == ""))
176182 then nil
177183 else [ScriptTransfer(addressFromStringValue(address3Team), address3TeamReward, i.payments[0].assetId)]
178184 let scriptTransferAddress1 = if ((address1Creator == ""))
179185 then nil
180186 else [ScriptTransfer(addressFromStringValue(address1Creator), address1CreatorReward, i.payments[0].assetId)]
181187 let scriptTransferAddress2 = if ((address2Creator == ""))
182188 then nil
183189 else [ScriptTransfer(addressFromStringValue(address2Creator), address2CreatorReward, i.payments[0].assetId)]
184190 let scriptTransferAddress3 = if ((address3Creator == ""))
185191 then nil
186192 else [ScriptTransfer(addressFromStringValue(address3Creator), address3CreatorReward, i.payments[0].assetId)]
187193 let sellerReward = ((((((amount - address1CreatorReward) - address2CreatorReward) - address3CreatorReward) - address1TeamReward) - address2TeamReward) - address3TeamReward)
188194 let scriptTransferSeller = if ((seller == ""))
189195 then nil
190196 else [ScriptTransfer(addressFromStringValue(seller), sellerReward, i.payments[0].assetId)]
191197 ((((((scriptTransferAddressTeam1 ++ scriptTransferAddressTeam2) ++ scriptTransferAddressTeam3) ++ scriptTransferAddress1) ++ scriptTransferAddress2) ++ scriptTransferAddress3) ++ scriptTransferSeller)
192198 }
193199
194200

github/deemru/w8io/026f985 
34.35 ms