tx · HwW2NWCQKXQyZQ5C7ULZVk4SBW1932oc9D6q8cxKLCAU 3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK: -0.01000000 Waves 2022.05.23 19:06 [2064550] smart account 3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK > SELF 0.00000000 Waves
{ "type": 13, "id": "HwW2NWCQKXQyZQ5C7ULZVk4SBW1932oc9D6q8cxKLCAU", "fee": 1000000, "feeAssetId": null, "timestamp": 1653321971227, "version": 2, "chainId": 84, "sender": "3NCLRHPm5VYMStKzvP2kkc5mxGSH9wtWAtK", "senderPublicKey": "2bV4VobJC5a6L6e7or9PFXQhQ1KtkZW1UYzjAvMzs6A8", "proofs": [ "ZFYFSXxbKtMMtoB2sjrwz36aWNRZgp7g2W8DqgHB6Eka6usZi8siYsUuBJaVgUMH4ZgVdVqjBgAWDuZt9i9ktv6" ], "script": "base64:AAIFAAAAAAAAABUIAhIFCgMICAgSAwoBARIFCgMICAEAAAALAAAAAARCVXNkAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0XAB7Z3/CJRHkIAQAAAAAEVVNEVAEAAAAgl0pBq34KfUugAqFVxnXIAChne47NFwAe2d/wiUR5CAEAAAAABFVTREMBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAANCVEMBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAANFVEgBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAANCTkIBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3uOzRcAHtnf8IlEeQgBAAAAAARVU0ROAQAAACCXSkGrfgp9S6ACoVXGdcgAKGd7js0XAB7Z3/CJRHkIAQAAAAAESEFTSAEAAAAgl0pBq34KfUugAqFVxnXIAChne47NFwAe2d/wiUR5CAEAAAAABEtVU0QBAAAAIJdKQat+Cn1LoAKhVcZ1yAAoZ3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zZmVyAAAAAwUAAAAJZEFwcEZyZWVzCQAAaQAAAAIJAABoAAAAAgAAAAAAAAAABQUAAAAGYW1vdW50AAAAAAAAAABkBQAAAARCVXNkBQAAAANuaWwFAAAABEJVc2QAAAAAb7QgVQ==", "height": 2064550, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5EvwzSL3Mw6aZNm7SzXGx1nLLSXB5dE6kNJo8E9RpdU4 Next: Gn7frxoYTVgijfn9n2MkD4HmnzA5R5exDpwvXttFE3sP Diff:
Old | New | Differences | |
---|---|---|---|
28 | 28 | let p = if ((size(l.payments) == 1)) | |
29 | 29 | then l.payments[0] | |
30 | 30 | else throw("Attached payment is required") | |
31 | - | | |
31 | + | if (if (if (if (if (if (if (if (if ((p.assetId != a)) | |
32 | 32 | then (p.assetId != b) | |
33 | 33 | else false) | |
34 | 34 | then (p.assetId != c) | |
44 | 44 | then (p.assetId != h) | |
45 | 45 | else false) | |
46 | 46 | then (p.assetId != i) | |
47 | - | else false) | |
48 | - | then isDefined(p.assetId) | |
49 | 47 | else false) | |
50 | 48 | then if (if (if ((m == "")) | |
51 | 49 | then true |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k' | |
5 | 5 | ||
6 | 6 | let b = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k' | |
7 | 7 | ||
8 | 8 | let c = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k' | |
9 | 9 | ||
10 | 10 | let d = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k' | |
11 | 11 | ||
12 | 12 | let e = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k' | |
13 | 13 | ||
14 | 14 | let f = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k' | |
15 | 15 | ||
16 | 16 | let g = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k' | |
17 | 17 | ||
18 | 18 | let h = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k' | |
19 | 19 | ||
20 | 20 | let i = base58'BBaEeEmuA6qPNowGcB8BXozC2PmAAG48G5zzSWw8qt2k' | |
21 | 21 | ||
22 | 22 | let j = base58'3N9Lfz79kZAEUupwESSboYFyygo1nQguVXo' | |
23 | 23 | ||
24 | 24 | let k = base58'3Mx3pn4yMcBccM59UrDGjbbAkVsRYBw38tB' | |
25 | 25 | ||
26 | 26 | @Callable(l) | |
27 | 27 | func DepositFunds (m,n,o) = { | |
28 | 28 | let p = if ((size(l.payments) == 1)) | |
29 | 29 | then l.payments[0] | |
30 | 30 | else throw("Attached payment is required") | |
31 | - | | |
31 | + | if (if (if (if (if (if (if (if (if ((p.assetId != a)) | |
32 | 32 | then (p.assetId != b) | |
33 | 33 | else false) | |
34 | 34 | then (p.assetId != c) | |
35 | 35 | else false) | |
36 | 36 | then (p.assetId != d) | |
37 | 37 | else false) | |
38 | 38 | then (p.assetId != e) | |
39 | 39 | else false) | |
40 | 40 | then (p.assetId != f) | |
41 | 41 | else false) | |
42 | 42 | then (p.assetId != g) | |
43 | 43 | else false) | |
44 | 44 | then (p.assetId != h) | |
45 | 45 | else false) | |
46 | 46 | then (p.assetId != i) | |
47 | - | else false) | |
48 | - | then isDefined(p.assetId) | |
49 | 47 | else false) | |
50 | 48 | then if (if (if ((m == "")) | |
51 | 49 | then true | |
52 | 50 | else (n == "")) | |
53 | 51 | then true | |
54 | 52 | else (o == "")) | |
55 | 53 | then throw("Job Scope, Deliverables desc and Freelancer Wallet Address cannot be empty") | |
56 | 54 | else [StringEntry((toBase58String(l.caller.bytes) + "_Scope"), m), StringEntry((toBase58String(l.caller.bytes) + "_Deliv"), n), StringEntry((toBase58String(l.caller.bytes) + "_Freelancer"), o), IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), p.amount)] | |
57 | 55 | else throw("Can only deposit accepted tokens") | |
58 | 56 | } | |
59 | 57 | ||
60 | 58 | ||
61 | 59 | ||
62 | 60 | @Callable(l) | |
63 | 61 | func PayFreelancer (q) = { | |
64 | 62 | let r = (toBase58String(l.caller.bytes) + "_Payment") | |
65 | 63 | let o = (toBase58String(l.caller.bytes) + "_Freelancer") | |
66 | 64 | let s = (toBase58String(l.caller.bytes) + "_Paidtrx") | |
67 | 65 | let t = { | |
68 | 66 | let u = getInteger(this, r) | |
69 | 67 | if ($isInstanceOf(u, "Int")) | |
70 | 68 | then { | |
71 | 69 | let v = u | |
72 | 70 | v | |
73 | 71 | } | |
74 | 72 | else 0 | |
75 | 73 | } | |
76 | 74 | let w = { | |
77 | 75 | let u = getInteger(this, s) | |
78 | 76 | if ($isInstanceOf(u, "Int")) | |
79 | 77 | then { | |
80 | 78 | let v = u | |
81 | 79 | v | |
82 | 80 | } | |
83 | 81 | else 0 | |
84 | 82 | } | |
85 | 83 | let x = getStringValue(this, o) | |
86 | 84 | let y = addressFromStringValue(x) | |
87 | 85 | let z = Address(j) | |
88 | 86 | if ((0 >= (t - q))) | |
89 | 87 | then throw(("You do not have enough funds to make payment, your available funds are: " + toString((t / 100000000)))) | |
90 | 88 | else if ((w > 12)) | |
91 | 89 | then throw("You have already done 12 payments, you cannot make more payments") | |
92 | 90 | else { | |
93 | 91 | let A = if ((w == 11)) | |
94 | 92 | then t | |
95 | 93 | else (t - q) | |
96 | 94 | $Tuple2([IntegerEntry((toBase58String(l.caller.bytes) + "_Payment"), A), IntegerEntry((toBase58String(l.caller.bytes) + "_Paidtrx"), (w + 1)), ScriptTransfer(y, ((95 * t) / 100), a), ScriptTransfer(z, ((5 * t) / 100), a)], a) | |
97 | 95 | } | |
98 | 96 | } | |
99 | 97 | ||
100 | 98 | ||
101 | 99 | ||
102 | 100 | @Callable(l) | |
103 | 101 | func AdminTransfer (B,C,D) = if ((l.caller.bytes != k)) | |
104 | 102 | then throw("Only Admin can do this") | |
105 | 103 | else { | |
106 | 104 | let r = (B + "_Payment") | |
107 | 105 | let o = (B + "_Freelancer") | |
108 | 106 | let t = { | |
109 | 107 | let u = getInteger(this, r) | |
110 | 108 | if ($isInstanceOf(u, "Int")) | |
111 | 109 | then { | |
112 | 110 | let v = u | |
113 | 111 | v | |
114 | 112 | } | |
115 | 113 | else 0 | |
116 | 114 | } | |
117 | 115 | let x = getStringValue(this, o) | |
118 | 116 | let y = addressFromStringValue(x) | |
119 | 117 | let z = Address(j) | |
120 | 118 | let E = addressFromStringValue(B) | |
121 | 119 | if ((t == 0)) | |
122 | 120 | then throw("User's balance is 0 BUsdc cannot realize any payment") | |
123 | 121 | else $Tuple2([IntegerEntry((B + "_Payment"), 0), ScriptTransfer(y, ((D * (95 * t)) / 10000), a), ScriptTransfer(E, (((100 - D) * (95 * t)) / 10000), a), ScriptTransfer(z, ((5 * t) / 100), a)], a) | |
124 | 122 | } | |
125 | 123 | ||
126 | 124 |
github/deemru/w8io/169f3d6 51.67 ms ◑