tx · c3uGWJhhts393CHn2FfBQCy3J2Kt4jWC9mJBWoUvSKP

3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo:  -0.01400000 Waves

2022.07.29 19:53 [2161382] smart account 3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo > SELF 0.00000000 Waves

{ "type": 13, "id": "c3uGWJhhts393CHn2FfBQCy3J2Kt4jWC9mJBWoUvSKP", "fee": 1400000, "feeAssetId": null, "timestamp": 1659113607655, "version": 2, "chainId": 84, "sender": "3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo", "senderPublicKey": "8Gc2RCQPWrzPyyDuKYbKYRCrEHXZSYqCAdiiRQAooSZ6", "proofs": [ "4GSrBTSDcquyNP7ubqy8Mv4t2AxYrg6TE4rG57umR33FdPykxTpxeeA14J6Aoi1LKGcNRNPwzQhTwXLRxgeTydhf" ], "script": "base64:AAIFAAAAAAAAACkIAhIDCgEIEgkKBwgICAgBAQESCQoHCAgICAEBARIECgIICBIECgIICAAAAAkAAAAACW9yYWNsZUtleQIAAAAJb3JhY2xlS2V5AQAAAAZnZXRTdHIAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgIAAAAAAQAAAAZnZXRJbnQAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYgUAAAAHJG1hdGNoMAUAAAABYgAAAAAAAAAAAAAAAAAGb3JhY2xlCQEAAAAGZ2V0U3RyAAAAAQUAAAAJb3JhY2xlS2V5AAAAAAlvcmFjbGVGZWUJAQAAAAV2YWx1ZQAAAAEJAAQmAAAAAQUAAAAGb3JhY2xlAAAAAApzY29uZXhEYXBwCQAEJgAAAAEJAQAAABN2YWx1ZU9yRXJy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AADHNlbGxlclJld2FyZAkAAGUAAAACCQAAZQAAAAIJAABlAAAAAgkAAGUAAAACCQAAZQAAAAIJAABlAAAAAgUAAAAGYW1vdW50BQAAABVhZGRyZXNzMUNyZWF0b3JSZXdhcmQFAAAAFWFkZHJlc3MyQ3JlYXRvclJld2FyZAUAAAAVYWRkcmVzczNDcmVhdG9yUmV3YXJkBQAAABJhZGRyZXNzMVRlYW1SZXdhcmQFAAAAEmFkZHJlc3MyVGVhbVJld2FyZAUAAAASYWRkcmVzczNUZWFtUmV3YXJkBAAAABRzY3JpcHRUcmFuc2ZlclNlbGxlcgMJAAAAAAAAAgUAAAAGc2VsbGVyAgAAAAAFAAAAA25pbAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAAZzZWxsZXIFAAAADHNlbGxlclJld2FyZAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAUAAAADbmlsCQAETgAAAAIJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgkABE4AAAACBQAAABpzY3JpcHRUcmFuc2ZlckFkZHJlc3NUZWFtMQUAAAAac2NyaXB0VHJhbnNmZXJBZGRyZXNzVGVhbTIFAAAAGnNjcmlwdFRyYW5zZmVyQWRkcmVzc1RlYW0zBQAAABZzY3JpcHRUcmFuc2ZlckFkZHJlc3MxBQAAABZzY3JpcHRUcmFuc2ZlckFkZHJlc3MyBQAAABZzY3JpcHRUcmFuc2ZlckFkZHJlc3MzBQAAABRzY3JpcHRUcmFuc2ZlclNlbGxlcgAAAADZ4p8i", "height": 2161382, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BLWsZWtpea4nCN2ce8NVcXRB9qDwCEPQ6ygxZLzCVCQD Next: HoN3icAcqPPGdqGqMqoxLajwSSubRqN8kds6MCZG9ZpD 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 resellDapp = addressFromString(valueOrErrorMessage(getString(oracleFee, "resellDapp"), "resellDapp not found"))
2929
3030 let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found")
3131
3232 let allowedDapps = [sconexDapp, resellDapp]
3333
3434 @Callable(i)
3535 func initDapp (dappKey) = if ((i.caller != this))
3636 then throw("You cannot do this action")
3737 else if ((oracle != ""))
3838 then throw("oracle already set, you can't override!")
3939 else [StringEntry(oracleKey, dappKey)]
4040
4141
4242
4343 @Callable(i)
4444 func teamSplitFee (artId,address1,address2,address3,address1Share,address2Share,address3Share) = if (!(containsElement(allowedDapps, i.caller)))
4545 then throw("Not allowed")
4646 else if ((0 > address1Share))
4747 then throw("Share 1 can't be negative")
4848 else if (if (if ((address1Share != 0))
4949 then true
5050 else (address1 != ""))
5151 then !(isDefined(addressFromString(address1)))
5252 else false)
5353 then throw("Address 1 is invalid")
5454 else if ((0 > address2Share))
5555 then throw("Share 2 can't be negative")
5656 else if (if (if ((address2Share != 0))
5757 then true
5858 else (address2 != ""))
5959 then !(isDefined(addressFromString(address2)))
6060 else false)
6161 then throw("Address 2 is invalid")
6262 else if ((0 > address3Share))
6363 then throw("Share 3 can't be negative")
6464 else if (if (if ((address3Share != 0))
6565 then true
6666 else (address3 != ""))
6767 then !(isDefined(addressFromString(address3)))
6868 else false)
6969 then throw("Address 3 is invalid")
7070 else if ((((address1Share + address2Share) + address3Share) != 15))
7171 then throw("Sum of shares should be equal to 15")
7272 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)]
7373
7474
7575
7676 @Callable(i)
7777 func creatorSplitFee (artId,address1,address2,address3,address1Share,address2Share,address3Share) = if (!(containsElement(allowedDapps, i.caller)))
7878 then throw("Not allowed")
7979 else if ((0 > address1Share))
8080 then throw("Share 1 can't be negative")
8181 else if (if (if ((address1Share != 0))
8282 then true
8383 else (address1 != ""))
8484 then !(isDefined(addressFromString(address1)))
8585 else false)
8686 then throw("Address 1 is invalid")
8787 else if ((0 > address2Share))
8888 then throw("Share 2 can't be negative")
8989 else if (if (if ((address2Share != 0))
9090 then true
9191 else (address2 != ""))
9292 then !(isDefined(addressFromString(address2)))
9393 else false)
9494 then throw("Address 2 is invalid")
9595 else if ((0 > address3Share))
9696 then throw("Share 3 can't be negative")
9797 else if (if (if ((address3Share != 0))
9898 then true
9999 else (address3 != ""))
100100 then !(isDefined(addressFromString(address3)))
101101 else false)
102102 then throw("Address 3 is invalid")
103103 else if ((((address1Share + address2Share) + address3Share) > 85))
104104 then throw("Sum of shares should be smaller or equal then 85")
105105 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)]
106106
107107
108108
109109 @Callable(i)
110110 func payFeeResell (txId,seller) = if (!(containsElement(allowedDapps, i.caller)))
111111 then throw("Not allowed")
112112 else {
113113 let sconexFeePercentage = 3
114114 let amount = value(i.payments[0].amount)
115115 let assetId = value(i.payments[0].assetId)
116116 let address1ShareCreator = getInt((txId + "_creator_share1"))
117117 let address2ShareCreator = getInt((txId + "_creator_share2"))
118118 let address3ShareCreator = getInt((txId + "_creator_share3"))
119119 let address1Creator = getStr((txId + "_creator_address1"))
120120 let address2Creator = getStr((txId + "_creator_address2"))
121121 let address3Creator = getStr((txId + "_creator_address3"))
122122 let address1CreatorReward = if ((address1Creator == ""))
123123 then 0
124124 else fraction(amount, address1ShareCreator, 100)
125125 let address2CreatorReward = if ((address2Creator == ""))
126126 then 0
127127 else fraction(amount, address2ShareCreator, 100)
128128 let address3CreatorReward = if ((address3Creator == ""))
129129 then 0
130130 else fraction(amount, address3ShareCreator, 100)
131131 let sconexFeeReward = fraction(amount, sconexFeePercentage, 100)
132132 let sellerReward = ((((amount - address1CreatorReward) - address2CreatorReward) - address3CreatorReward) - sconexFeeReward)
133133 let scriptTransferFeeReceiver = [ScriptTransfer(addressFromStringValue(feeReceiver), sconexFeeReward, i.payments[0].assetId)]
134134 let scriptTransferAddress1 = if ((address1Creator == ""))
135135 then nil
136136 else [ScriptTransfer(addressFromStringValue(address1Creator), address1CreatorReward, i.payments[0].assetId)]
137137 let scriptTransferAddress2 = if ((address2Creator == ""))
138138 then nil
139139 else [ScriptTransfer(addressFromStringValue(address2Creator), address2CreatorReward, i.payments[0].assetId)]
140140 let scriptTransferAddress3 = if ((address3Creator == ""))
141141 then nil
142142 else [ScriptTransfer(addressFromStringValue(address3Creator), address3CreatorReward, i.payments[0].assetId)]
143143 let scriptTransferSeller = if ((seller == ""))
144144 then nil
145145 else [ScriptTransfer(addressFromStringValue(seller), sellerReward, i.payments[0].assetId)]
146146 ((((scriptTransferAddress1 ++ scriptTransferAddress2) ++ scriptTransferAddress3) ++ scriptTransferFeeReceiver) ++ scriptTransferSeller)
147147 }
148148
149149
150150
151151 @Callable(i)
152152 func payFee (txId,seller) = if (!(containsElement(allowedDapps, i.caller)))
153153 then throw("Not allowed")
154154 else {
155155 let amount = value(i.payments[0].amount)
156156 let assetId = value(i.payments[0].assetId)
157157 let address1ShareTeam = getInt((txId + "_team_share1"))
158158 let address2ShareTeam = getInt((txId + "_team_share2"))
159159 let address3ShareTeam = getInt((txId + "_team_share3"))
160160 let address1Team = getStr((txId + "_team_address1"))
161161 let address2Team = getStr((txId + "_team_address2"))
162162 let address3Team = getStr((txId + "_team_address3"))
163163 let address1ShareCreator = getInt((txId + "_creator_address1"))
164164 let address2ShareCreator = getInt((txId + "_creator_address2"))
165165 let address3ShareCreator = getInt((txId + "_creator_address3"))
166166 let address1Creator = getStr((txId + "_creator_address1"))
167167 let address2Creator = getStr((txId + "_creator_address2"))
168168 let address3Creator = getStr((txId + "_creator_address3"))
169169 let address1TeamReward = if ((address1Team == ""))
170170 then 0
171171 else fraction(amount, address1ShareTeam, 100)
172172 let address2TeamReward = if ((address2Team == ""))
173173 then 0
174174 else fraction(amount, address2ShareTeam, 100)
175175 let address3TeamReward = if ((address3Team == ""))
176176 then 0
177177 else fraction(amount, address3ShareTeam, 100)
178178 let address1CreatorReward = if ((address1Creator == ""))
179179 then 0
180180 else fraction(amount, address1ShareCreator, 100)
181181 let address2CreatorReward = if ((address2Creator == ""))
182182 then 0
183183 else fraction(amount, address2ShareCreator, 100)
184184 let address3CreatorReward = if ((address3Creator == ""))
185185 then 0
186186 else fraction(amount, address3ShareCreator, 100)
187187 let scriptTransferAddressTeam1 = if ((address1Team == ""))
188188 then nil
189189 else [ScriptTransfer(addressFromStringValue(address1Team), address1TeamReward, i.payments[0].assetId)]
190190 let scriptTransferAddressTeam2 = if ((address2Team == ""))
191191 then nil
192192 else [ScriptTransfer(addressFromStringValue(address2Team), address2TeamReward, i.payments[0].assetId)]
193193 let scriptTransferAddressTeam3 = if ((address3Team == ""))
194194 then nil
195195 else [ScriptTransfer(addressFromStringValue(address3Team), address3TeamReward, i.payments[0].assetId)]
196196 let scriptTransferAddress1 = if ((address1Creator == ""))
197197 then nil
198198 else [ScriptTransfer(addressFromStringValue(address1Creator), address1CreatorReward, i.payments[0].assetId)]
199199 let scriptTransferAddress2 = if ((address2Creator == ""))
200200 then nil
201201 else [ScriptTransfer(addressFromStringValue(address2Creator), address2CreatorReward, i.payments[0].assetId)]
202202 let scriptTransferAddress3 = if ((address3Creator == ""))
203203 then nil
204204 else [ScriptTransfer(addressFromStringValue(address3Creator), address3CreatorReward, i.payments[0].assetId)]
205205 let sellerReward = ((((((amount - address1CreatorReward) - address2CreatorReward) - address3CreatorReward) - address1TeamReward) - address2TeamReward) - address3TeamReward)
206206 let scriptTransferSeller = if ((seller == ""))
207207 then nil
208208 else [ScriptTransfer(addressFromStringValue(seller), sellerReward, i.payments[0].assetId)]
209209 ((((((scriptTransferAddressTeam1 ++ scriptTransferAddressTeam2) ++ scriptTransferAddressTeam3) ++ scriptTransferAddress1) ++ scriptTransferAddress2) ++ scriptTransferAddress3) ++ scriptTransferSeller)
210210 }
211211
212212

github/deemru/w8io/026f985 
59.64 ms