tx · 2uHUv62TkGajwsKRdbgPpd46eCffm2hfPBZPi4uuGkEj 3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo: -0.01400000 Waves 2022.03.14 20:05 [1963903] smart account 3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo > SELF 0.00000000 Waves
{ "type": 13, "id": "2uHUv62TkGajwsKRdbgPpd46eCffm2hfPBZPi4uuGkEj", "fee": 1400000, "feeAssetId": null, "timestamp": 1647277540808, "version": 2, "chainId": 84, "sender": "3MvGbCQfRKnagRd5JmZTvgupznuJD7MyKfo", "senderPublicKey": "8Gc2RCQPWrzPyyDuKYbKYRCrEHXZSYqCAdiiRQAooSZ6", "proofs": [ "3cmwPsvQKvDqbCuPjUJCYEYLkYhxY3Lr3K4z9QpR7jEQTQtGxobdqYRpV4NNpwW52S5T9cj326FxFAu2LnWpyuhN" ], "script": "base64:AAIFAAAAAAAAACgIAhIDCgEIEgkKBwgICAgBAQESCQoHCAgICAEBARIECgIICBIDCgEIAAAACAAAAAAJb3JhY2xlS2V5AgAAAAlvcmFjbGVLZXkBAAAABmdldFN0cgAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAgAAAAABAAAABmdldEludAAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAAAAAAAAZvcmFjbGUJAQAAAAZnZXRTdHIAAAABBQAAAAlvcmFjbGVLZXkAAAAACW9yYWNsZUZlZQkBAAAABXZhbHVlAAAAAQkABCYAAAABBQAAAAZvcmFjbGUAAAAACnNjb25leERhcHAJAAQmAAAAAQkBAAAAE3ZhbHVlT3JFcnJvck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AAAAPYWRkcmVzczJDcmVhdG9yBQAAABVhZGRyZXNzMkNyZWF0b3JSZXdhcmQICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAAB2Fzc2V0SWQFAAAAA25pbAQAAAAWc2NyaXB0VHJhbnNmZXJBZGRyZXNzMwMJAAAAAAAAAgUAAAAPYWRkcmVzczNDcmVhdG9yAgAAAAAFAAAAA25pbAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAA9hZGRyZXNzM0NyZWF0b3IFAAAAFWFkZHJlc3MzQ3JlYXRvclJld2FyZAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAUAAAADbmlsCQAETgAAAAIJAAROAAAAAgkABE4AAAACCQAETgAAAAIJAAROAAAAAgUAAAAac2NyaXB0VHJhbnNmZXJBZGRyZXNzVGVhbTEFAAAAGnNjcmlwdFRyYW5zZmVyQWRkcmVzc1RlYW0yBQAAABpzY3JpcHRUcmFuc2ZlckFkZHJlc3NUZWFtMwUAAAAWc2NyaXB0VHJhbnNmZXJBZGRyZXNzMQUAAAAWc2NyaXB0VHJhbnNmZXJBZGRyZXNzMgUAAAAWc2NyaXB0VHJhbnNmZXJBZGRyZXNzMwAAAABU8YP8", "height": 1963903, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EAU8xD6aXnQrRNF6kSgmGmXMx3mgzpHtUAmLhShi6VB6 Next: 525rX21efkgyZzHpkHWiVsKFifUKabMpZdrkd8z7g83S Diff:
Old | New | Differences | |
---|---|---|---|
47 | 47 | then throw("Share 2 can't be negative") | |
48 | 48 | else if ((0 > address3Share)) | |
49 | 49 | then throw("Share 3 can't be negative") | |
50 | - | else if (( | |
50 | + | else if ((((address1Share + address2Share) + address3Share) > 15)) | |
51 | 51 | then throw("Sum of shares should be smaller or equal then 15") | |
52 | 52 | 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)] | |
53 | 53 | ||
62 | 62 | then throw("Share 2 can't be negative") | |
63 | 63 | else if ((0 > address3Share)) | |
64 | 64 | then throw("Share 3 can't be negative") | |
65 | - | else if (( | |
65 | + | else if ((((address1Share + address2Share) + address3Share) > 85)) | |
66 | 66 | then throw("Sum of shares should be smaller or equal then 85") | |
67 | 67 | 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)] | |
68 | 68 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let oracleKey = "oracleKey" | |
5 | 5 | ||
6 | 6 | func getStr (key) = match getString(this, key) { | |
7 | 7 | case b: String => | |
8 | 8 | b | |
9 | 9 | case _ => | |
10 | 10 | "" | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func getInt (key) = match getInteger(this, key) { | |
15 | 15 | case b: Int => | |
16 | 16 | b | |
17 | 17 | case _ => | |
18 | 18 | 0 | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | let oracle = getStr(oracleKey) | |
23 | 23 | ||
24 | 24 | let oracleFee = value(addressFromString(oracle)) | |
25 | 25 | ||
26 | 26 | let sconexDapp = addressFromString(valueOrErrorMessage(getString(oracleFee, "sconexDapp"), "sconexDapp not found")) | |
27 | 27 | ||
28 | 28 | let feeReceiver = valueOrErrorMessage(getString(oracleFee, "feeReceiver"), "feeReceiver not found") | |
29 | 29 | ||
30 | 30 | let allowedDapps = [sconexDapp] | |
31 | 31 | ||
32 | 32 | @Callable(i) | |
33 | 33 | func initDapp (dappKey) = if ((i.caller != this)) | |
34 | 34 | then throw("You cannot do this action") | |
35 | 35 | else if ((oracle != "")) | |
36 | 36 | then throw("oracle already set, you can't override!") | |
37 | 37 | else [StringEntry(oracleKey, dappKey)] | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | ||
41 | 41 | @Callable(i) | |
42 | 42 | func teamSplitFee (artId,address1,address2,address3,address1Share,address2Share,address3Share) = if (!(containsElement(allowedDapps, i.caller))) | |
43 | 43 | then throw("Not allowed") | |
44 | 44 | else if ((0 > address1Share)) | |
45 | 45 | then throw("Share 1 can't be negative") | |
46 | 46 | else if ((0 > address2Share)) | |
47 | 47 | then throw("Share 2 can't be negative") | |
48 | 48 | else if ((0 > address3Share)) | |
49 | 49 | then throw("Share 3 can't be negative") | |
50 | - | else if (( | |
50 | + | else if ((((address1Share + address2Share) + address3Share) > 15)) | |
51 | 51 | then throw("Sum of shares should be smaller or equal then 15") | |
52 | 52 | 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)] | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | ||
56 | 56 | @Callable(i) | |
57 | 57 | func creatorSplitFee (artId,address1,address2,address3,address1Share,address2Share,address3Share) = if (!(containsElement(allowedDapps, i.caller))) | |
58 | 58 | then throw("Not allowed") | |
59 | 59 | else if ((0 > address1Share)) | |
60 | 60 | then throw("Share 1 can't be negative") | |
61 | 61 | else if ((0 > address2Share)) | |
62 | 62 | then throw("Share 2 can't be negative") | |
63 | 63 | else if ((0 > address3Share)) | |
64 | 64 | then throw("Share 3 can't be negative") | |
65 | - | else if (( | |
65 | + | else if ((((address1Share + address2Share) + address3Share) > 85)) | |
66 | 66 | then throw("Sum of shares should be smaller or equal then 85") | |
67 | 67 | 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)] | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | ||
71 | 71 | @Callable(i) | |
72 | 72 | func payFeeResell (txId,seller) = { | |
73 | 73 | let sconexFeePercentage = 3 | |
74 | 74 | let amount = value(i.payments[0].amount) | |
75 | 75 | let assetId = value(i.payments[0].assetId) | |
76 | 76 | let address1ShareCreator = getInt((txId + "_creator_address1")) | |
77 | 77 | let address2ShareCreator = getInt((txId + "_creator_address2")) | |
78 | 78 | let address3ShareCreator = getInt((txId + "_creator_address3")) | |
79 | 79 | let address1Creator = getStr((txId + "_creator_address1")) | |
80 | 80 | let address2Creator = getStr((txId + "_creator_address2")) | |
81 | 81 | let address3Creator = getStr((txId + "_creator_address3")) | |
82 | 82 | let address1CreatorReward = if ((address1Creator == "")) | |
83 | 83 | then 0 | |
84 | 84 | else fraction(amount, address1ShareCreator, 100) | |
85 | 85 | let address2CreatorReward = if ((address2Creator == "")) | |
86 | 86 | then 0 | |
87 | 87 | else fraction(amount, address2ShareCreator, 100) | |
88 | 88 | let address3CreatorReward = if ((address3Creator == "")) | |
89 | 89 | then 0 | |
90 | 90 | else fraction(amount, address3ShareCreator, 100) | |
91 | 91 | let sconexFeeReward = fraction(amount, sconexFeePercentage, 100) | |
92 | 92 | let sellerReward = ((((amount - address1CreatorReward) - address2CreatorReward) - address3CreatorReward) - sconexFeeReward) | |
93 | 93 | let scriptTransferFeeReceiver = [ScriptTransfer(addressFromStringValue(feeReceiver), sconexFeeReward, i.payments[0].assetId)] | |
94 | 94 | let scriptTransferAddress1 = if ((address1Creator == "")) | |
95 | 95 | then nil | |
96 | 96 | else [ScriptTransfer(addressFromStringValue(address1Creator), address1CreatorReward, i.payments[0].assetId)] | |
97 | 97 | let scriptTransferAddress2 = if ((address2Creator == "")) | |
98 | 98 | then nil | |
99 | 99 | else [ScriptTransfer(addressFromStringValue(address2Creator), address2CreatorReward, i.payments[0].assetId)] | |
100 | 100 | let scriptTransferAddress3 = if ((address3Creator == "")) | |
101 | 101 | then nil | |
102 | 102 | else [ScriptTransfer(addressFromStringValue(address3Creator), address3CreatorReward, i.payments[0].assetId)] | |
103 | 103 | let scriptTransferSeller = if ((seller == "")) | |
104 | 104 | then nil | |
105 | 105 | else [ScriptTransfer(addressFromStringValue(seller), sellerReward, i.payments[0].assetId)] | |
106 | 106 | ((((scriptTransferAddress1 ++ scriptTransferAddress2) ++ scriptTransferAddress3) ++ scriptTransferFeeReceiver) ++ scriptTransferSeller) | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | ||
111 | 111 | @Callable(i) | |
112 | 112 | func payFee (txId) = { | |
113 | 113 | let amount = value(i.payments[0].amount) | |
114 | 114 | let assetId = value(i.payments[0].assetId) | |
115 | 115 | let address1ShareTeam = getInt((txId + "_team_share1")) | |
116 | 116 | let address2ShareTeam = getInt((txId + "_team_share2")) | |
117 | 117 | let address3ShareTeam = getInt((txId + "_team_share3")) | |
118 | 118 | let address1Team = getStr((txId + "_team_address1")) | |
119 | 119 | let address2Team = getStr((txId + "_team_address2")) | |
120 | 120 | let address3Team = getStr((txId + "_team_address3")) | |
121 | 121 | let address1ShareCreator = getInt((txId + "_creator_address1")) | |
122 | 122 | let address2ShareCreator = getInt((txId + "_creator_address2")) | |
123 | 123 | let address3ShareCreator = getInt((txId + "_creator_address3")) | |
124 | 124 | let address1Creator = getStr((txId + "_creator_address1")) | |
125 | 125 | let address2Creator = getStr((txId + "_creator_address2")) | |
126 | 126 | let address3Creator = getStr((txId + "_creator_address3")) | |
127 | 127 | let address1TeamReward = if ((address1Team == "")) | |
128 | 128 | then 0 | |
129 | 129 | else fraction(amount, address1ShareTeam, 100) | |
130 | 130 | let address2TeamReward = if ((address2Team == "")) | |
131 | 131 | then 0 | |
132 | 132 | else fraction(amount, address2ShareTeam, 100) | |
133 | 133 | let address3TeamReward = if ((address3Team == "")) | |
134 | 134 | then 0 | |
135 | 135 | else fraction(amount, address3ShareTeam, 100) | |
136 | 136 | let address1CreatorReward = if ((address1Creator == "")) | |
137 | 137 | then 0 | |
138 | 138 | else fraction(amount, address1ShareCreator, 100) | |
139 | 139 | let address2CreatorReward = if ((address2Creator == "")) | |
140 | 140 | then 0 | |
141 | 141 | else fraction(amount, address2ShareCreator, 100) | |
142 | 142 | let address3CreatorReward = if ((address3Creator == "")) | |
143 | 143 | then 0 | |
144 | 144 | else fraction(amount, address3ShareCreator, 100) | |
145 | 145 | let scriptTransferAddressTeam1 = if ((address1Team == "")) | |
146 | 146 | then nil | |
147 | 147 | else [ScriptTransfer(addressFromStringValue(address1Team), address1TeamReward, i.payments[0].assetId)] | |
148 | 148 | let scriptTransferAddressTeam2 = if ((address2Team == "")) | |
149 | 149 | then nil | |
150 | 150 | else [ScriptTransfer(addressFromStringValue(address2Team), address2TeamReward, i.payments[0].assetId)] | |
151 | 151 | let scriptTransferAddressTeam3 = if ((address3Team == "")) | |
152 | 152 | then nil | |
153 | 153 | else [ScriptTransfer(addressFromStringValue(address3Team), address3TeamReward, i.payments[0].assetId)] | |
154 | 154 | let scriptTransferAddress1 = if ((address1Creator == "")) | |
155 | 155 | then nil | |
156 | 156 | else [ScriptTransfer(addressFromStringValue(address1Creator), address1CreatorReward, i.payments[0].assetId)] | |
157 | 157 | let scriptTransferAddress2 = if ((address2Creator == "")) | |
158 | 158 | then nil | |
159 | 159 | else [ScriptTransfer(addressFromStringValue(address2Creator), address2CreatorReward, i.payments[0].assetId)] | |
160 | 160 | let scriptTransferAddress3 = if ((address3Creator == "")) | |
161 | 161 | then nil | |
162 | 162 | else [ScriptTransfer(addressFromStringValue(address3Creator), address3CreatorReward, i.payments[0].assetId)] | |
163 | 163 | (((((scriptTransferAddressTeam1 ++ scriptTransferAddressTeam2) ++ scriptTransferAddressTeam3) ++ scriptTransferAddress1) ++ scriptTransferAddress2) ++ scriptTransferAddress3) | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 |
github/deemru/w8io/026f985 39.26 ms ◑