tx · 9afHXwHh2UxoJQFxqLuw6zqfYFiaKnxC7Q9DZj31CpK9 3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq: -0.01000000 Waves 2023.07.19 12:27 [2672562] smart account 3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq > SELF 0.00000000 Waves
{ "type": 13, "id": "9afHXwHh2UxoJQFxqLuw6zqfYFiaKnxC7Q9DZj31CpK9", "fee": 1000000, "feeAssetId": null, "timestamp": 1689758900243, "version": 2, "chainId": 84, "sender": "3MpMuGN8rW9EpPwzETAQz88Pe9TQhSwiriq", "senderPublicKey": "57SkjQUEwC1ayCqLbXLuzBqifK6B6SR6rfxtGsbAo3zW", "proofs": [ "2Qx9FFi4xCi5Xbx2xFNGDiPUCr31f6RXTbCwDMPKYD3aayV7mKQYjsLmhDiMfYzBi7cSN7d9MNo8gEx2kVEnV6it" ], "script": "base64:BgIaCAISAwoBARIAEgMKAQgSAwoBARIDCgEIEgAVAAxjb250cmFjdEZpbGUCEG1ydF9zdGFraW5nLnJpZGUAA1NFUAICX18ABnNjYWxlOACAwtcvAQh0aHJvd0VycgEDbXNnCQACAQkArAICCQCsAgIFDGNvbnRyYWN0RmlsZQICOiAFA21zZwAKa2V5QXNzZXRJZAkAuQkCCQDMCAICAiVzCQDMCAICB2Fzc2V0SWQFA25pbAUDU0VQABNrZXlFbWlzc2lvblBlckJsb2NrCQC5CQIJAMwIAgICJXMJAMwIAgIQZW1pc3Npb25QZXJCbG9jawUDbmlsBQNTRVAADWtleVN0YXJ0QmxvY2sJALkJAgkAzAgCAgIlcwkAzAgCAgpzdGFydEJsb2NrBQNuaWwFA1NFUAAQa2V5VG90YWxMcEFtb3VudAkAuQkCCQDMCAICAiVzCQDMCAICDXRvdGFsTHBBbW91bnQFA25pbAUDU0VQABNrZXlUb3RhbEFzc2V0QW1vdW50CQC5CQIJAMwIAgICJXMJAMwIAgIQdG90YWxBc3NldEFtb3VudAUDbmlsBQNTRVABD2tleVVzZXJMcEFt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zAgCCQEMSW50ZWdlckVudHJ5AgkBD2tleVVzZXJMcEFtb3VudAEFC3VzZXJBZGRyZXNzBQ9uZXdVc2VyTHBBbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIJARprZXlVc2VyVG90YWxBc3NldFdpdGhkcmF3bgEFC3VzZXJBZGRyZXNzBRpuZXdVc2VyVG90YWxBc3NldFdpdGhkcmF3bgkAzAgCCQEMSW50ZWdlckVudHJ5AgUNa2V5U3RhcnRCbG9jawUGaGVpZ2h0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgUTd2l0aGRyYXdBc3NldEFtb3VudAUMYXNzZXRJZEJ5dGVzBQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEVZ2V0VXNlckFzc2V0c1JFQURPTkxZAQt1c2VyQWRkcmVzcwQMdXNlckxwQW1vdW50CQEPZ2V0VXNlckxwQW1vdW50AQULdXNlckFkZHJlc3MEHHVzZXJBdmFpbGFibGVBc3NldFRvV2l0aGRyYXcJAGsDBQx1c2VyTHBBbW91bnQJAQ9nZXRDdXJyZW50UHJpY2UABQZzY2FsZTgJAJQKAgUDbmlsCQCVCgMFDHVzZXJMcEFtb3VudAUcdXNlckF2YWlsYWJsZUFzc2V0VG9XaXRoZHJhdwkBD2dldEN1cnJlbnRQcmljZQABaQEWZ2V0VG90YWxBc3NldHNSRUFET05MWQAJAJQKAgUDbmlsCQCVCgMFDXRvdGFsTHBBbW91bnQJAStnZXRUb3RhbEFzc2V0QW1vdW50V2l0aFByb2ZpdE9yTWF4QXZhaWxhYmxlAAkBD2dldEN1cnJlbnRQcmljZQAABHKXbA==", "height": 2672562, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6MqgmCdbvrGRDpGhqPsXLMXtpdFF6pEjrJrSbCVDvqxq Next: BrkV6ZnB28fo3AMKbuDLP5GHPgzyrbBBVsRxAjqjnbJw Diff:
Old | New | Differences | |
---|---|---|---|
125 | 125 | func withdraw (Q) = { | |
126 | 126 | let l = toString(E.caller) | |
127 | 127 | let I = s(l) | |
128 | - | let P = [if ((I >= Q)) | |
128 | + | let P = [if ((Q > 0)) | |
129 | + | then true | |
130 | + | else d("amount should be more than 0"), if ((I >= Q)) | |
129 | 131 | then true | |
130 | 132 | else d((("cannot withdraw more than available (" + toString(I)) + ")"))] | |
131 | 133 | if ((P == P)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "mrt_staking.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | func d (e) = throw(((a + ": ") + e)) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | let f = makeString(["%s", "assetId"], b) | |
14 | 14 | ||
15 | 15 | let g = makeString(["%s", "emissionPerBlock"], b) | |
16 | 16 | ||
17 | 17 | let h = makeString(["%s", "startBlock"], b) | |
18 | 18 | ||
19 | 19 | let i = makeString(["%s", "totalLpAmount"], b) | |
20 | 20 | ||
21 | 21 | let j = makeString(["%s", "totalAssetAmount"], b) | |
22 | 22 | ||
23 | 23 | func k (l) = makeString(["%s%s", "userLpAmount", l], b) | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func m (l) = makeString(["%s%s", "totalAssetWithdrawn", l], b) | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (l) = makeString(["%s%s", "totalAssetStaked", l], b) | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | let o = valueOrElse(getInteger(this, i), 0) | |
33 | 33 | ||
34 | 34 | let p = valueOrElse(getInteger(this, j), 0) | |
35 | 35 | ||
36 | 36 | let q = valueOrElse(getString(this, f), "WAVES") | |
37 | 37 | ||
38 | 38 | let r = if ((q == "WAVES")) | |
39 | 39 | then unit | |
40 | 40 | else fromBase58String(q) | |
41 | 41 | ||
42 | 42 | func s (l) = valueOrElse(getInteger(this, k(l)), 0) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func t () = { | |
46 | 46 | let u = valueOrElse(getInteger(this, g), 0) | |
47 | 47 | let v = valueOrElse(getInteger(this, h), 0) | |
48 | 48 | let w = (height - v) | |
49 | 49 | max([0, (u * w)]) | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func x () = { | |
54 | 54 | let y = (p + t()) | |
55 | 55 | let z = r | |
56 | 56 | if ($isInstanceOf(z, "Unit")) | |
57 | 57 | then { | |
58 | 58 | let A = z | |
59 | 59 | min([y, wavesBalance(this).available]) | |
60 | 60 | } | |
61 | 61 | else if ($isInstanceOf(z, "ByteVector")) | |
62 | 62 | then { | |
63 | 63 | let B = z | |
64 | 64 | min([y, assetBalance(this, B)]) | |
65 | 65 | } | |
66 | 66 | else throw("Match error") | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func C () = if ((o != 0)) | |
71 | 71 | then fraction(x(), c, o) | |
72 | 72 | else (1 * c) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func D (E,l) = { | |
76 | 76 | let F = [if ((size(E.payments) == 1)) | |
77 | 77 | then true | |
78 | 78 | else d("should include 1 payment"), if ((E.payments[0].assetId == r)) | |
79 | 79 | then true | |
80 | 80 | else d(("payment should be in " + q)), if ((E.payments[0].amount > 0)) | |
81 | 81 | then true | |
82 | 82 | else "payment amount should be greater than 0"] | |
83 | 83 | if ((F == F)) | |
84 | 84 | then { | |
85 | 85 | let G = E.payments[0].amount | |
86 | 86 | let H = fraction(G, c, C()) | |
87 | 87 | let I = s(l) | |
88 | 88 | let J = valueOrElse(getInteger(this, n(l)), 0) | |
89 | 89 | let K = (o + H) | |
90 | 90 | let L = (p + G) | |
91 | 91 | let M = (I + H) | |
92 | 92 | let N = (J + G) | |
93 | 93 | let O = if ((o == 0)) | |
94 | 94 | then [IntegerEntry(h, height)] | |
95 | 95 | else nil | |
96 | 96 | ([IntegerEntry(i, K), IntegerEntry(j, L), IntegerEntry(k(l), M), IntegerEntry(n(l), N)] ++ O) | |
97 | 97 | } | |
98 | 98 | else throw("Strict value is not equal to itself.") | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | @Callable(E) | |
103 | 103 | func setEmissionPerBlock (u) = { | |
104 | 104 | let P = [if ((E.caller == this)) | |
105 | 105 | then true | |
106 | 106 | else d("permission denied")] | |
107 | 107 | if ((P == P)) | |
108 | 108 | then [IntegerEntry(j, x()), IntegerEntry(h, height), IntegerEntry(g, max([0, u]))] | |
109 | 109 | else throw("Strict value is not equal to itself.") | |
110 | 110 | } | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | ||
114 | 114 | @Callable(E) | |
115 | 115 | func stake () = D(E, toString(E.caller)) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | ||
119 | 119 | @Callable(E) | |
120 | 120 | func stakeFor (l) = D(E, l) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | ||
124 | 124 | @Callable(E) | |
125 | 125 | func withdraw (Q) = { | |
126 | 126 | let l = toString(E.caller) | |
127 | 127 | let I = s(l) | |
128 | - | let P = [if ((I >= Q)) | |
128 | + | let P = [if ((Q > 0)) | |
129 | + | then true | |
130 | + | else d("amount should be more than 0"), if ((I >= Q)) | |
129 | 131 | then true | |
130 | 132 | else d((("cannot withdraw more than available (" + toString(I)) + ")"))] | |
131 | 133 | if ((P == P)) | |
132 | 134 | then { | |
133 | 135 | let M = (I - Q) | |
134 | 136 | let R = fraction(Q, C(), c) | |
135 | 137 | let K = (o - Q) | |
136 | 138 | let L = fraction(K, C(), c) | |
137 | 139 | let S = valueOrElse(getInteger(this, m(l)), 0) | |
138 | 140 | let T = (S + R) | |
139 | 141 | [IntegerEntry(i, K), IntegerEntry(j, L), IntegerEntry(k(l), M), IntegerEntry(m(l), T), IntegerEntry(h, height), ScriptTransfer(E.caller, R, r)] | |
140 | 142 | } | |
141 | 143 | else throw("Strict value is not equal to itself.") | |
142 | 144 | } | |
143 | 145 | ||
144 | 146 | ||
145 | 147 | ||
146 | 148 | @Callable(E) | |
147 | 149 | func getUserAssetsREADONLY (l) = { | |
148 | 150 | let I = s(l) | |
149 | 151 | let U = fraction(I, C(), c) | |
150 | 152 | $Tuple2(nil, $Tuple3(I, U, C())) | |
151 | 153 | } | |
152 | 154 | ||
153 | 155 | ||
154 | 156 | ||
155 | 157 | @Callable(E) | |
156 | 158 | func getTotalAssetsREADONLY () = $Tuple2(nil, $Tuple3(o, x(), C())) | |
157 | 159 | ||
158 | 160 |
github/deemru/w8io/026f985 40.77 ms ◑