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
2525
2626 let sconexDapp = addressFromString(valueOrErrorMessage(getString(oracleFee, "sconexDapp"), "sconexDapp not found"))
2727
28+let resellDapp = addressFromString(valueOrErrorMessage(getString(oracleFee, "resellDapp"), "resellDapp not found"))
29+
2830 let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found")
2931
30-let allowedDapps = [sconexDapp]
32+let allowedDapps = [sconexDapp, resellDapp]
3133
3234 @Callable(i)
3335 func initDapp (dappKey) = if ((i.caller != this))
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
28+let resellDapp = addressFromString(valueOrErrorMessage(getString(oracleFee, "resellDapp"), "resellDapp not found"))
29+
2830 let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found")
2931
30-let allowedDapps = [sconexDapp]
32+let allowedDapps = [sconexDapp, resellDapp]
3133
3234 @Callable(i)
3335 func initDapp (dappKey) = if ((i.caller != this))
3436 then throw("You cannot do this action")
3537 else if ((oracle != ""))
3638 then throw("oracle already set, you can't override!")
3739 else [StringEntry(oracleKey, dappKey)]
3840
3941
4042
4143 @Callable(i)
4244 func teamSplitFee (artId,address1,address2,address3,address1Share,address2Share,address3Share) = if (!(containsElement(allowedDapps, i.caller)))
4345 then throw("Not allowed")
4446 else if ((0 > address1Share))
4547 then throw("Share 1 can't be negative")
4648 else if (if (if ((address1Share != 0))
4749 then true
4850 else (address1 != ""))
4951 then !(isDefined(addressFromString(address1)))
5052 else false)
5153 then throw("Address 1 is invalid")
5254 else if ((0 > address2Share))
5355 then throw("Share 2 can't be negative")
5456 else if (if (if ((address2Share != 0))
5557 then true
5658 else (address2 != ""))
5759 then !(isDefined(addressFromString(address2)))
5860 else false)
5961 then throw("Address 2 is invalid")
6062 else if ((0 > address3Share))
6163 then throw("Share 3 can't be negative")
6264 else if (if (if ((address3Share != 0))
6365 then true
6466 else (address3 != ""))
6567 then !(isDefined(addressFromString(address3)))
6668 else false)
6769 then throw("Address 3 is invalid")
6870 else if ((((address1Share + address2Share) + address3Share) != 15))
6971 then throw("Sum of shares should be equal to 15")
7072 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)]
7173
7274
7375
7476 @Callable(i)
7577 func creatorSplitFee (artId,address1,address2,address3,address1Share,address2Share,address3Share) = if (!(containsElement(allowedDapps, i.caller)))
7678 then throw("Not allowed")
7779 else if ((0 > address1Share))
7880 then throw("Share 1 can't be negative")
7981 else if (if (if ((address1Share != 0))
8082 then true
8183 else (address1 != ""))
8284 then !(isDefined(addressFromString(address1)))
8385 else false)
8486 then throw("Address 1 is invalid")
8587 else if ((0 > address2Share))
8688 then throw("Share 2 can't be negative")
8789 else if (if (if ((address2Share != 0))
8890 then true
8991 else (address2 != ""))
9092 then !(isDefined(addressFromString(address2)))
9193 else false)
9294 then throw("Address 2 is invalid")
9395 else if ((0 > address3Share))
9496 then throw("Share 3 can't be negative")
9597 else if (if (if ((address3Share != 0))
9698 then true
9799 else (address3 != ""))
98100 then !(isDefined(addressFromString(address3)))
99101 else false)
100102 then throw("Address 3 is invalid")
101103 else if ((((address1Share + address2Share) + address3Share) > 85))
102104 then throw("Sum of shares should be smaller or equal then 85")
103105 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)]
104106
105107
106108
107109 @Callable(i)
108110 func payFeeResell (txId,seller) = if (!(containsElement(allowedDapps, i.caller)))
109111 then throw("Not allowed")
110112 else {
111113 let sconexFeePercentage = 3
112114 let amount = value(i.payments[0].amount)
113115 let assetId = value(i.payments[0].assetId)
114116 let address1ShareCreator = getInt((txId + "_creator_share1"))
115117 let address2ShareCreator = getInt((txId + "_creator_share2"))
116118 let address3ShareCreator = getInt((txId + "_creator_share3"))
117119 let address1Creator = getStr((txId + "_creator_address1"))
118120 let address2Creator = getStr((txId + "_creator_address2"))
119121 let address3Creator = getStr((txId + "_creator_address3"))
120122 let address1CreatorReward = if ((address1Creator == ""))
121123 then 0
122124 else fraction(amount, address1ShareCreator, 100)
123125 let address2CreatorReward = if ((address2Creator == ""))
124126 then 0
125127 else fraction(amount, address2ShareCreator, 100)
126128 let address3CreatorReward = if ((address3Creator == ""))
127129 then 0
128130 else fraction(amount, address3ShareCreator, 100)
129131 let sconexFeeReward = fraction(amount, sconexFeePercentage, 100)
130132 let sellerReward = ((((amount - address1CreatorReward) - address2CreatorReward) - address3CreatorReward) - sconexFeeReward)
131133 let scriptTransferFeeReceiver = [ScriptTransfer(addressFromStringValue(feeReceiver), sconexFeeReward, i.payments[0].assetId)]
132134 let scriptTransferAddress1 = if ((address1Creator == ""))
133135 then nil
134136 else [ScriptTransfer(addressFromStringValue(address1Creator), address1CreatorReward, i.payments[0].assetId)]
135137 let scriptTransferAddress2 = if ((address2Creator == ""))
136138 then nil
137139 else [ScriptTransfer(addressFromStringValue(address2Creator), address2CreatorReward, i.payments[0].assetId)]
138140 let scriptTransferAddress3 = if ((address3Creator == ""))
139141 then nil
140142 else [ScriptTransfer(addressFromStringValue(address3Creator), address3CreatorReward, i.payments[0].assetId)]
141143 let scriptTransferSeller = if ((seller == ""))
142144 then nil
143145 else [ScriptTransfer(addressFromStringValue(seller), sellerReward, i.payments[0].assetId)]
144146 ((((scriptTransferAddress1 ++ scriptTransferAddress2) ++ scriptTransferAddress3) ++ scriptTransferFeeReceiver) ++ scriptTransferSeller)
145147 }
146148
147149
148150
149151 @Callable(i)
150152 func payFee (txId,seller) = if (!(containsElement(allowedDapps, i.caller)))
151153 then throw("Not allowed")
152154 else {
153155 let amount = value(i.payments[0].amount)
154156 let assetId = value(i.payments[0].assetId)
155157 let address1ShareTeam = getInt((txId + "_team_share1"))
156158 let address2ShareTeam = getInt((txId + "_team_share2"))
157159 let address3ShareTeam = getInt((txId + "_team_share3"))
158160 let address1Team = getStr((txId + "_team_address1"))
159161 let address2Team = getStr((txId + "_team_address2"))
160162 let address3Team = getStr((txId + "_team_address3"))
161163 let address1ShareCreator = getInt((txId + "_creator_address1"))
162164 let address2ShareCreator = getInt((txId + "_creator_address2"))
163165 let address3ShareCreator = getInt((txId + "_creator_address3"))
164166 let address1Creator = getStr((txId + "_creator_address1"))
165167 let address2Creator = getStr((txId + "_creator_address2"))
166168 let address3Creator = getStr((txId + "_creator_address3"))
167169 let address1TeamReward = if ((address1Team == ""))
168170 then 0
169171 else fraction(amount, address1ShareTeam, 100)
170172 let address2TeamReward = if ((address2Team == ""))
171173 then 0
172174 else fraction(amount, address2ShareTeam, 100)
173175 let address3TeamReward = if ((address3Team == ""))
174176 then 0
175177 else fraction(amount, address3ShareTeam, 100)
176178 let address1CreatorReward = if ((address1Creator == ""))
177179 then 0
178180 else fraction(amount, address1ShareCreator, 100)
179181 let address2CreatorReward = if ((address2Creator == ""))
180182 then 0
181183 else fraction(amount, address2ShareCreator, 100)
182184 let address3CreatorReward = if ((address3Creator == ""))
183185 then 0
184186 else fraction(amount, address3ShareCreator, 100)
185187 let scriptTransferAddressTeam1 = if ((address1Team == ""))
186188 then nil
187189 else [ScriptTransfer(addressFromStringValue(address1Team), address1TeamReward, i.payments[0].assetId)]
188190 let scriptTransferAddressTeam2 = if ((address2Team == ""))
189191 then nil
190192 else [ScriptTransfer(addressFromStringValue(address2Team), address2TeamReward, i.payments[0].assetId)]
191193 let scriptTransferAddressTeam3 = if ((address3Team == ""))
192194 then nil
193195 else [ScriptTransfer(addressFromStringValue(address3Team), address3TeamReward, i.payments[0].assetId)]
194196 let scriptTransferAddress1 = if ((address1Creator == ""))
195197 then nil
196198 else [ScriptTransfer(addressFromStringValue(address1Creator), address1CreatorReward, i.payments[0].assetId)]
197199 let scriptTransferAddress2 = if ((address2Creator == ""))
198200 then nil
199201 else [ScriptTransfer(addressFromStringValue(address2Creator), address2CreatorReward, i.payments[0].assetId)]
200202 let scriptTransferAddress3 = if ((address3Creator == ""))
201203 then nil
202204 else [ScriptTransfer(addressFromStringValue(address3Creator), address3CreatorReward, i.payments[0].assetId)]
203205 let sellerReward = ((((((amount - address1CreatorReward) - address2CreatorReward) - address3CreatorReward) - address1TeamReward) - address2TeamReward) - address3TeamReward)
204206 let scriptTransferSeller = if ((seller == ""))
205207 then nil
206208 else [ScriptTransfer(addressFromStringValue(seller), sellerReward, i.payments[0].assetId)]
207209 ((((((scriptTransferAddressTeam1 ++ scriptTransferAddressTeam2) ++ scriptTransferAddressTeam3) ++ scriptTransferAddress1) ++ scriptTransferAddress2) ++ scriptTransferAddress3) ++ scriptTransferSeller)
208210 }
209211
210212

github/deemru/w8io/026f985 
38.90 ms