tx · iMZQTciANT58MDT2Do36HsJB7AQNYGZykG1a5Bd8jM2 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw: -0.01000000 Waves 2022.06.01 19:20 [2077518] smart account 3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw > SELF 0.00000000 Waves
{ "type": 13, "id": "iMZQTciANT58MDT2Do36HsJB7AQNYGZykG1a5Bd8jM2", "fee": 1000000, "feeAssetId": null, "timestamp": 1654100473647, "version": 2, "chainId": 84, "sender": "3N7nJwbFGppbebBtXy6bWVcQCGu7m3kXFaw", "senderPublicKey": "GTKqLSK6nuFkRdebB5SmTwTU2DnTeLMvhymCFfT2CxX2", "proofs": [ "5UFJjhPKXtmZoAUbn15aXbH5vwZhNySGgzWcTJAs82hi9ABDCWVAQeHqaAaJTRw7fFNHqMe7ZhYubxSdiWrZaxk4" ], "script": "base64:AAIFAAAAAAAAABsIAhIAEgUKAwgICBIDCgEBEgASBwoFCAgBAQEAAAALAAAAAARCVXNkAQAAACALvsj7FOtVE+sP1AaGydwZZ/QwPxANKxzHl3IsOosV4wAAAAAEVVNEVAEAAAAgC77I+xTrVRPrD9QGhsncGWf0MD8QDSscx5dyLDqLFeMAAAAABFVTREMBAAAAIAu+yPsU61UT6w/UBobJ3Bln9DA/EA0rHMeXciw6ixXjAAAAAANCVEMBAAAAIAu+yPsU61UT6w/UBobJ3Bln9DA/EA0rHMeXciw6ixXjAAAAAANFVEgBAAAAIAu+yPsU61UT6w/UBobJ3Bln9DA/EA0rHMeXciw6ixXjAAAAAANCTkIBAAAAIPFnQusGrf9lWc1HAL2GYEY/Z0GCbKxbjRY4l37PzNLbAAAAAARVU0ROAQAAACDxZ0LrBq3/ZVnNRwC9hmBGP2dBgmysW40WOJd+z8zS2wAAAAAESEFTSAEAAAAg8WdC6wat/2VZzUcAvYZgRj9nQYJsrFuNFjiXfs/M0tsAAAAABEtVU0QBAAAAIPFnQusGrf9lWc1HAL2GYEY/Z0GCbKxbjRY4l37PzNLbA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EAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzBQAAAAxQYXltZW50QXNzZXQEAAAACWRBcHBGcmVlcwkBAAAAB0FkZHJlc3MAAAABBQAAAAhkQXBwRmVlcwQAAAALQWRkcmVzc1VzZXIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABFVzZXIEAAAACUFzc2V0VXNlZAMJAAAAAAAAAgUAAAAOUGF5bWVudEFzc2V0SWQCAAAABVdhdmVzBQAAAAR1bml0CQACWQAAAAEFAAAADlBheW1lbnRBc3NldElkAwkAAAAAAAACBQAAAAZhbW91bnQAAAAAAAAAAAAJAAACAAAAAQIAAAA0VXNlcidzIGJhbGFuY2UgaXMgMCBCVXNkYyBjYW5ub3QgcmVhbGl6ZSBhbnkgcGF5bWVudAkABRQAAAACCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAABFVzZXICAAAACF9QYXltZW50AAAAAAAAAAAACQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAAEUFkZHJlc3NGcmVlTGFuY2VyCQAAaQAAAAIJAABoAAAAAgUAAAAMVG9GcmVlbGFuY2VyBQAAAAZhbW91bnQAAAAAAAAAAGQFAAAACUFzc2V0VXNlZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAtBZGRyZXNzVXNlcgkAAGkAAAACCQAAaAAAAAIFAAAABlRvVXNlcgUAAAAGYW1vdW50AAAAAAAAAABkBQAAAAlBc3NldFVzZWQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAJZEFwcEZyZWVzCQAAaQAAAAIJAABoAAAAAgUAAAAIQWRtaW5GZWUFAAAABmFtb3VudAAAAAAAAAAAZAUAAAAJQXNzZXRVc2VkBQAAAANuaWwFAAAACUFzc2V0VXNlZAAAAAA/Jjn6", "height": 2077518, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8NRrnHDVYjcm8aqkHpd4d1TabSQqSrtv5wa9FM24f5tA Next: 2Kix6vTRgn84PZmVzoU87j28FQ6Zj3VKag8THWeKEaAo Diff:
Old | New | Differences | |
---|---|---|---|
173 | 173 | then (PaidtrxLast == 1) | |
174 | 174 | else false) | |
175 | 175 | then throw(((("Cannot make Payment before " + toString(LastPaymentBlockValue)) + " min") + toString(WaitTime))) | |
176 | - | else throw(((("ELSE " + toString(LastPaymentBlockValue)) + " min") + toString(WaitTime))) | |
176 | + | else { | |
177 | + | let FeePaid = (Fee * 100000000) | |
178 | + | let PaidtrxValue = if ((PaidtrxLast == 3)) | |
179 | + | then 0 | |
180 | + | else (PaidtrxLast + 1) | |
181 | + | let UserAccount = if ((PaidtrxLast == 3)) | |
182 | + | then 0 | |
183 | + | else ((amount - (Fee * 100000000)) - (((PaidtrxValue * 25) * (amount - (Fee * 100000000))) / 100)) | |
184 | + | let Payment2Freelance = ((25 * amount) / 100) | |
185 | + | $Tuple2([IntegerEntry((toBase58String(i.caller.bytes) + "_Payment"), UserAccount), IntegerEntry((toBase58String(i.caller.bytes) + "_Paidtrx"), PaidtrxValue), IntegerEntry((toBase58String(i.caller.bytes) + "_LastPaid"), height), IntegerEntry("WaitTime", WaitTime), IntegerEntry("LastPaymentBlockValue", LastPaymentBlockValue), IntegerEntry("Check", (LastPaymentBlockValue + WaitTime)), ScriptTransfer(AddressFreeLancer, Payment2Freelance, AssetUsed), ScriptTransfer(dAppFrees, FeePaid, AssetUsed)], AssetUsed) | |
186 | + | } | |
177 | 187 | } | |
178 | 188 | ||
179 | 189 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let BUsd = base58'nrDXX1zHfGht7xExqNxDu7voCy9wzmc9vJxwcc2jLga' | |
5 | 5 | ||
6 | 6 | let USDT = base58'nrDXX1zHfGht7xExqNxDu7voCy9wzmc9vJxwcc2jLga' | |
7 | 7 | ||
8 | 8 | let USDC = base58'nrDXX1zHfGht7xExqNxDu7voCy9wzmc9vJxwcc2jLga' | |
9 | 9 | ||
10 | 10 | let BTC = base58'nrDXX1zHfGht7xExqNxDu7voCy9wzmc9vJxwcc2jLga' | |
11 | 11 | ||
12 | 12 | let ETH = base58'nrDXX1zHfGht7xExqNxDu7voCy9wzmc9vJxwcc2jLga' | |
13 | 13 | ||
14 | 14 | let BNB = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
15 | 15 | ||
16 | 16 | let USDN = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
17 | 17 | ||
18 | 18 | let HASH = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
19 | 19 | ||
20 | 20 | let KUSD = base58'HFLaeLdjg9cASsYhvwM9PV3NcCxa3UeVa5KvfYUPQYgJ' | |
21 | 21 | ||
22 | 22 | let dAppFees = base58'3N9Lfz79kZAEUupwESSboYFyygo1nQguVXo' | |
23 | 23 | ||
24 | 24 | let AdmindApp = base58'3Mx3pn4yMcBccM59UrDGjbbAkVsRYBw38tB' | |
25 | 25 | ||
26 | 26 | @Callable(i) | |
27 | 27 | func Reset () = [IntegerEntry((toBase58String(i.caller.bytes) + "_Payment"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_Paidtrx"), 0), IntegerEntry((toBase58String(i.caller.bytes) + "_LastPaid"), 0)] | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | ||
31 | 31 | @Callable(i) | |
32 | 32 | func DepositFunds (ScopeDesc,Deliverables,FreelancerAddress) = { | |
33 | 33 | let FreeLancerPayment = (toBase58String(i.caller.bytes) + "_Payment") | |
34 | 34 | let amount = match getInteger(this, FreeLancerPayment) { | |
35 | 35 | case a: Int => | |
36 | 36 | a | |
37 | 37 | case _ => | |
38 | 38 | 0 | |
39 | 39 | } | |
40 | 40 | if ((amount != 0)) | |
41 | 41 | then throw("You have already deposited funds, deposits can only be done once") | |
42 | 42 | else { | |
43 | 43 | let pmt = if ((size(i.payments) == 1)) | |
44 | 44 | then i.payments[0] | |
45 | 45 | else throw("Attached payment is required") | |
46 | 46 | if (if (if (if (if (if (if (if (if (if (if ((0 >= pmt.amount)) | |
47 | 47 | then (pmt.assetId != BUsd) | |
48 | 48 | else false) | |
49 | 49 | then (pmt.assetId != USDT) | |
50 | 50 | else false) | |
51 | 51 | then (pmt.assetId != USDC) | |
52 | 52 | else false) | |
53 | 53 | then (pmt.assetId != BTC) | |
54 | 54 | else false) | |
55 | 55 | then (pmt.assetId != ETH) | |
56 | 56 | else false) | |
57 | 57 | then (pmt.assetId != BNB) | |
58 | 58 | else false) | |
59 | 59 | then (pmt.assetId != USDN) | |
60 | 60 | else false) | |
61 | 61 | then (pmt.assetId != HASH) | |
62 | 62 | else false) | |
63 | 63 | then (pmt.assetId != KUSD) | |
64 | 64 | else false) | |
65 | 65 | then isDefined(pmt.assetId) | |
66 | 66 | else false) | |
67 | 67 | then throw("Can only deposit accepted tokens, and amount should be positive") | |
68 | 68 | else if (if (if ((ScopeDesc == "")) | |
69 | 69 | then true | |
70 | 70 | else (Deliverables == "")) | |
71 | 71 | then true | |
72 | 72 | else (FreelancerAddress == "")) | |
73 | 73 | then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty") | |
74 | 74 | else { | |
75 | 75 | let AssetUsed = if (isDefined(pmt.assetId)) | |
76 | 76 | then toBase58String(value(pmt.assetId)) | |
77 | 77 | else "Waves" | |
78 | 78 | [StringEntry((toBase58String(i.caller.bytes) + "_Scope"), ScopeDesc), StringEntry((toBase58String(i.caller.bytes) + "_Deliv"), Deliverables), StringEntry((toBase58String(i.caller.bytes) + "_Asset"), AssetUsed), StringEntry((toBase58String(i.caller.bytes) + "_Freelancer"), FreelancerAddress), IntegerEntry((toBase58String(i.caller.bytes) + "_Payment"), pmt.amount)] | |
79 | 79 | } | |
80 | 80 | } | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | ||
85 | 85 | @Callable(i) | |
86 | 86 | func PayFreelancer (PayFreelancer) = { | |
87 | 87 | let FreeLancerPayment = (toBase58String(i.caller.bytes) + "_Payment") | |
88 | 88 | let FreelancerAddress = (toBase58String(i.caller.bytes) + "_Freelancer") | |
89 | 89 | let PaymentAsset = (toBase58String(i.caller.bytes) + "_Asset") | |
90 | 90 | let Paidtrx = (toBase58String(i.caller.bytes) + "_Paidtrx") | |
91 | 91 | let amount = match getInteger(this, FreeLancerPayment) { | |
92 | 92 | case a: Int => | |
93 | 93 | a | |
94 | 94 | case _ => | |
95 | 95 | 0 | |
96 | 96 | } | |
97 | 97 | let PaidtrxLast = match getInteger(this, Paidtrx) { | |
98 | 98 | case a: Int => | |
99 | 99 | a | |
100 | 100 | case _ => | |
101 | 101 | 0 | |
102 | 102 | } | |
103 | 103 | let FreelancerAddressStr = getStringValue(this, FreelancerAddress) | |
104 | 104 | let PaymentAssetId = getStringValue(this, PaymentAsset) | |
105 | 105 | let AddressFreeLancer = addressFromStringValue(FreelancerAddressStr) | |
106 | 106 | let dAppFrees = Address(dAppFees) | |
107 | 107 | let AssetUsed = if ((PaymentAssetId == "Waves")) | |
108 | 108 | then unit | |
109 | 109 | else fromBase58String(PaymentAssetId) | |
110 | 110 | if ((0 >= (((95 * amount) / 100) - (PayFreelancer * 100000000)))) | |
111 | 111 | then throw(("You do not have enough funds to make payment, your available funds are: " + toString((amount / 100000000)))) | |
112 | 112 | else if (if ((PaidtrxLast >= 12)) | |
113 | 113 | then (amount > 0) | |
114 | 114 | else false) | |
115 | 115 | then throw("You have already done 12 payments, you cannot make more payments") | |
116 | 116 | else { | |
117 | 117 | let UserAccount = if ((PaidtrxLast == 11)) | |
118 | 118 | then 0 | |
119 | 119 | else (amount - (PayFreelancer * 100000000)) | |
120 | 120 | let Payment2Freelance = if ((PaidtrxLast == 11)) | |
121 | 121 | then ((95 * amount) / 100) | |
122 | 122 | else ((95 * PayFreelancer) * 1000000) | |
123 | 123 | let FeePaid = if ((PaidtrxLast == 11)) | |
124 | 124 | then ((5 * amount) / 100) | |
125 | 125 | else ((5 * PayFreelancer) * 1000000) | |
126 | 126 | let PaidtrxValue = if ((PaidtrxLast == 11)) | |
127 | 127 | then 0 | |
128 | 128 | else (PaidtrxLast + 1) | |
129 | 129 | $Tuple2([IntegerEntry((toBase58String(i.caller.bytes) + "_Payment"), UserAccount), IntegerEntry((toBase58String(i.caller.bytes) + "_Paidtrx"), PaidtrxValue), ScriptTransfer(AddressFreeLancer, Payment2Freelance, AssetUsed), ScriptTransfer(dAppFrees, FeePaid, AssetUsed)], AssetUsed) | |
130 | 130 | } | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | ||
135 | 135 | @Callable(i) | |
136 | 136 | func PayFreelancerOnDemand () = { | |
137 | 137 | let PayFreelancer = 4 | |
138 | 138 | let Fee = 1 | |
139 | 139 | let WaitTime = 10 | |
140 | 140 | let FreeLancerPayment = (toBase58String(i.caller.bytes) + "_Payment") | |
141 | 141 | let FreelancerAddress = (toBase58String(i.caller.bytes) + "_Freelancer") | |
142 | 142 | let LastPaymentBlock = (toBase58String(i.caller.bytes) + "_LastPaid") | |
143 | 143 | let PaymentAsset = (toBase58String(i.caller.bytes) + "_Asset") | |
144 | 144 | let Paidtrx = (toBase58String(i.caller.bytes) + "_Paidtrx") | |
145 | 145 | let amount = match getInteger(this, FreeLancerPayment) { | |
146 | 146 | case a: Int => | |
147 | 147 | a | |
148 | 148 | case _ => | |
149 | 149 | 0 | |
150 | 150 | } | |
151 | 151 | let PaidtrxLast = match getInteger(this, Paidtrx) { | |
152 | 152 | case a: Int => | |
153 | 153 | a | |
154 | 154 | case _ => | |
155 | 155 | 0 | |
156 | 156 | } | |
157 | 157 | let LastPaymentBlockValue = match getInteger(this, LastPaymentBlock) { | |
158 | 158 | case a: Int => | |
159 | 159 | a | |
160 | 160 | case _ => | |
161 | 161 | 0 | |
162 | 162 | } | |
163 | 163 | let FreelancerAddressStr = getStringValue(this, FreelancerAddress) | |
164 | 164 | let PaymentAssetId = getStringValue(this, PaymentAsset) | |
165 | 165 | let AddressFreeLancer = addressFromStringValue(FreelancerAddressStr) | |
166 | 166 | let dAppFrees = Address(dAppFees) | |
167 | 167 | let AssetUsed = if ((PaymentAssetId == "Waves")) | |
168 | 168 | then unit | |
169 | 169 | else fromBase58String(PaymentAssetId) | |
170 | 170 | if ((0 >= (amount - (Fee * 100000000)))) | |
171 | 171 | then throw(("You do not have enough funds to make payment, your available funds are: " + toString((amount / 100000000)))) | |
172 | 172 | else if (if ((height > (LastPaymentBlockValue + WaitTime))) | |
173 | 173 | then (PaidtrxLast == 1) | |
174 | 174 | else false) | |
175 | 175 | then throw(((("Cannot make Payment before " + toString(LastPaymentBlockValue)) + " min") + toString(WaitTime))) | |
176 | - | else throw(((("ELSE " + toString(LastPaymentBlockValue)) + " min") + toString(WaitTime))) | |
176 | + | else { | |
177 | + | let FeePaid = (Fee * 100000000) | |
178 | + | let PaidtrxValue = if ((PaidtrxLast == 3)) | |
179 | + | then 0 | |
180 | + | else (PaidtrxLast + 1) | |
181 | + | let UserAccount = if ((PaidtrxLast == 3)) | |
182 | + | then 0 | |
183 | + | else ((amount - (Fee * 100000000)) - (((PaidtrxValue * 25) * (amount - (Fee * 100000000))) / 100)) | |
184 | + | let Payment2Freelance = ((25 * amount) / 100) | |
185 | + | $Tuple2([IntegerEntry((toBase58String(i.caller.bytes) + "_Payment"), UserAccount), IntegerEntry((toBase58String(i.caller.bytes) + "_Paidtrx"), PaidtrxValue), IntegerEntry((toBase58String(i.caller.bytes) + "_LastPaid"), height), IntegerEntry("WaitTime", WaitTime), IntegerEntry("LastPaymentBlockValue", LastPaymentBlockValue), IntegerEntry("Check", (LastPaymentBlockValue + WaitTime)), ScriptTransfer(AddressFreeLancer, Payment2Freelance, AssetUsed), ScriptTransfer(dAppFrees, FeePaid, AssetUsed)], AssetUsed) | |
186 | + | } | |
177 | 187 | } | |
178 | 188 | ||
179 | 189 | ||
180 | 190 | ||
181 | 191 | @Callable(i) | |
182 | 192 | func AdminTransfer (User,Freelancer,ToFreelancer,ToUser,AdminFee) = if ((i.caller.bytes != AdmindApp)) | |
183 | 193 | then throw("Only Admin can do this") | |
184 | 194 | else if ((((ToUser + ToFreelancer) + AdminFee) != 100)) | |
185 | 195 | then throw("Total of Percentages cannot be different from 100%") | |
186 | 196 | else { | |
187 | 197 | let FreeLancerPayment = (User + "_Payment") | |
188 | 198 | let FreelancerAddress = (User + "_Freelancer") | |
189 | 199 | let PaymentAsset = (toBase58String(i.caller.bytes) + "_Asset") | |
190 | 200 | let amount = match getInteger(this, FreeLancerPayment) { | |
191 | 201 | case a: Int => | |
192 | 202 | a | |
193 | 203 | case _ => | |
194 | 204 | 0 | |
195 | 205 | } | |
196 | 206 | let FreelancerAddressStr = getStringValue(this, FreelancerAddress) | |
197 | 207 | let AddressFreeLancer = addressFromStringValue(FreelancerAddressStr) | |
198 | 208 | let PaymentAssetId = getStringValue(this, PaymentAsset) | |
199 | 209 | let dAppFrees = Address(dAppFees) | |
200 | 210 | let AddressUser = addressFromStringValue(User) | |
201 | 211 | let AssetUsed = if ((PaymentAssetId == "Waves")) | |
202 | 212 | then unit | |
203 | 213 | else fromBase58String(PaymentAssetId) | |
204 | 214 | if ((amount == 0)) | |
205 | 215 | then throw("User's balance is 0 BUsdc cannot realize any payment") | |
206 | 216 | else $Tuple2([IntegerEntry((User + "_Payment"), 0), ScriptTransfer(AddressFreeLancer, ((ToFreelancer * amount) / 100), AssetUsed), ScriptTransfer(AddressUser, ((ToUser * amount) / 100), AssetUsed), ScriptTransfer(dAppFrees, ((AdminFee * amount) / 100), AssetUsed)], AssetUsed) | |
207 | 217 | } | |
208 | 218 | ||
209 | 219 |
github/deemru/w8io/026f985 37.27 ms ◑