tx · 9kBJohuSW8s7Cw5zdDv2EC5qaatBJJ2ZLwRtMsu5Boti
3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq: -0.01000000 Waves
2023.08.09 21:20 [2703415] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves
{
"type": 13,
"id": "9kBJohuSW8s7Cw5zdDv2EC5qaatBJJ2ZLwRtMsu5Boti",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1691605248811,
"version": 2,
"chainId": 84,
"sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq",
"senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd",
"proofs": [
"oQXenbq5Km6cfdAJrMTJiyJzAyE58v7UL1U3Srafhr9uQDvJPCV4ydGiGxnrtGQkte6d9xxW5MuyWnPvA9r52gZ"
],
"script": "base64:BgIKCAISABIAEgASAA0ACXdhdmVzMUxJZAkBB0FkZHJlc3MBASCx9eRWoz/T7on2QCucPEyACTagmHhap+TFH25bD+lGhQAJd2F2ZXMzTElkCQEHQWRkcmVzcwEBIHdXDDXqNpTfTtMV3HoBAJm7TRBH1wyKq1fh63GL4LhkAAl3YXZlczVMSWQJAQdBZGRyZXNzAQEgG0ZokmU5WBTQbm1EIuXU3iDl1u675ol+F8RLM/XoZqQAA2FycgkAzAgCAAEJAMwIAgACCQDMCAIAAwkAzAgCAAQJAMwIAgAFBQNuaWwABGFycjIJAMwIAgABCQDMCAIAAgUDbmlsAARhcnIzCQDMCAIAAQkAzAgCAAIJAMwIAgADBQNuaWwBA3N1bQIBYQFiCQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQECIzNOM0RuVmZmblV5WnR6Mk1SYms1VTdnaU4xMTJXZW1wTU5kAgZib3Jyb3cJAMwIAgIsMjVGRXFFalJrcUs2eUNraVQ3THo2U0FZejdnVUZDdHhmQ0NobnJWRkQ1QVQJAMwIAgDAhD0FA25pbAUDbmlsAQpn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qtX4etxi+C4ZAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIcTm90IGVub3VnaCBXQVZFUyB0byBkZXBvc2l0IQFpARByZWRlZW1XYXZlczNMX3YyAAMDCQECIT0CCQCQAwEIBQFpCHBheW1lbnRzAAEGCQAAAggJAJEDAggFAWkIcGF5bWVudHMAAAZhbW91bnQAAAkAAgECHDEgcGF5bWVudCBoYXMgdG8gYmUgYXR0YWNoZWQEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBAt0b2tlbkFtb3VudAAGBBJyZXR1cm5lZFVTRE5BbW91bnQJAGgCCQBlAgkAaAIFC3Rva2VuQW1vdW50CQBpAgkBEGdldFdhdmVzTmV3UHJpY2UAAMCEPQAEAMCEPQkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQdhZGRyZXNzAhFfcmVkZWVtZWRfV0FWRVMzTAULdG9rZW5BbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUHYWRkcmVzcwIOX3JlY2VpdmVkX1VTRE4FEnJldHVybmVkVVNETkFtb3VudAkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCAUBaQZjYWxsZXIFEnJldHVybmVkVVNETkFtb3VudAEgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkz3G7O",
"height": 2703415,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8mN8xo49f5YZm8McR2TryfYc1YTqqk1ZxnHh4JoWtDbL
Next: HExcxCk2Sadz9hQTGvPfRDis2evKqESvkLzztrYmPfTQ
Diff:
Old | New | | Differences |
---|
32 | 32 | | func o () = 3000000 |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | | - | func p () = 1500000 |
---|
| 35 | + | func p () = 1200000 |
---|
36 | 36 | | |
---|
37 | 37 | | |
---|
38 | | - | func q () = 1200000 |
---|
| 38 | + | func q () = 2000000 |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
41 | | - | func r () = 2000000 |
---|
42 | | - | |
---|
43 | | - | |
---|
44 | | - | @Callable(s) |
---|
45 | | - | func mintWaves3L_v1 () = if (if ((size(s.payments) != 1)) |
---|
| 41 | + | @Callable(r) |
---|
| 42 | + | func mintWaves3L_v1 () = if (if ((size(r.payments) != 1)) |
---|
46 | 43 | | then true |
---|
47 | | - | else (s.payments[0].amount == 0)) |
---|
| 44 | + | else (r.payments[0].amount == 0)) |
---|
48 | 45 | | then throw("1 payment has to be attached") |
---|
49 | 46 | | else { |
---|
50 | | - | let l = toString(s.caller) |
---|
51 | | - | let t = s.payments[0].amount |
---|
52 | | - | let u = ((t / n()) * 100000000) |
---|
53 | | - | let v = j("WAVES", s.caller) |
---|
54 | | - | if ((v > u)) |
---|
| 47 | + | let l = toString(r.caller) |
---|
| 48 | + | let s = r.payments[0].amount |
---|
| 49 | + | let t = ((s / n()) * 100000000) |
---|
| 50 | + | let u = j("WAVES", r.caller) |
---|
| 51 | + | if ((u > t)) |
---|
55 | 52 | | then { |
---|
56 | | - | let w = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, u)]) |
---|
57 | | - | if ((w == w)) |
---|
| 53 | + | let v = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, t)]) |
---|
| 54 | + | if ((v == v)) |
---|
58 | 55 | | then { |
---|
59 | | - | func x (y,z) = { |
---|
60 | | - | let A = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", t], nil) |
---|
61 | | - | if ((A == A)) |
---|
62 | | - | then (y + z) |
---|
| 56 | + | func w (x,y) = { |
---|
| 57 | + | let z = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", s], nil) |
---|
| 58 | + | if ((z == z)) |
---|
| 59 | + | then (x + y) |
---|
63 | 60 | | else throw("Strict value is not equal to itself.") |
---|
64 | 61 | | } |
---|
65 | 62 | | |
---|
66 | | - | let B = [t, t, t] |
---|
67 | | - | let C = { |
---|
68 | | - | let D = B |
---|
69 | | - | let E = size(D) |
---|
70 | | - | let F = 0 |
---|
71 | | - | func G (H,I) = if ((I >= E)) |
---|
72 | | - | then H |
---|
73 | | - | else x(H, D[I]) |
---|
| 63 | + | let A = [s, s, s] |
---|
| 64 | + | let B = { |
---|
| 65 | + | let C = A |
---|
| 66 | + | let D = size(C) |
---|
| 67 | + | let E = 0 |
---|
| 68 | + | func F (G,H) = if ((H >= D)) |
---|
| 69 | + | then G |
---|
| 70 | + | else w(G, C[H]) |
---|
74 | 71 | | |
---|
75 | | - | func J (H,I) = if ((I >= E)) |
---|
76 | | - | then H |
---|
| 72 | + | func I (G,H) = if ((H >= D)) |
---|
| 73 | + | then G |
---|
77 | 74 | | else throw("List size exceeds 3") |
---|
78 | 75 | | |
---|
79 | | - | J(G(G(G(F, 0), 1), 2), 3) |
---|
| 76 | + | I(F(F(F(E, 0), 1), 2), 3) |
---|
80 | 77 | | } |
---|
81 | | - | let K = ((C / q()) * 1000000) |
---|
82 | | - | [IntegerEntry((l + "_gave_USDN"), t), IntegerEntry((l + "_deposited_WAVES"), u), IntegerEntry(((l + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), C), IntegerEntry((l + "_received_WAVES3L"), K), ScriptTransfer(s.caller, K, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] |
---|
| 78 | + | let J = ((B / p()) * 1000000) |
---|
| 79 | + | [IntegerEntry((l + "_gave_USDN"), s), IntegerEntry((l + "_deposited_WAVES"), t), IntegerEntry(((l + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), B), IntegerEntry((l + "_received_WAVES3L"), J), ScriptTransfer(r.caller, J, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] |
---|
83 | 80 | | } |
---|
84 | 81 | | else throw("Strict value is not equal to itself.") |
---|
85 | 82 | | } |
---|
|
88 | 85 | | |
---|
89 | 86 | | |
---|
90 | 87 | | |
---|
91 | | - | @Callable(s) |
---|
92 | | - | func redeemWaves3L_v1 () = if (if ((size(s.payments) != 1)) |
---|
| 88 | + | @Callable(r) |
---|
| 89 | + | func redeemWaves3L_v1 () = if (if ((size(r.payments) != 1)) |
---|
93 | 90 | | then true |
---|
94 | | - | else (s.payments[0].amount == 0)) |
---|
| 91 | + | else (r.payments[0].amount == 0)) |
---|
95 | 92 | | then throw("1 payment has to be attached") |
---|
96 | 93 | | else { |
---|
97 | | - | let l = toString(s.caller) |
---|
98 | | - | let L = s.payments[0].amount |
---|
99 | | - | let M = (L * (r() / 1000000)) |
---|
100 | | - | [IntegerEntry((l + "_redeemed_WAVES3L"), L), IntegerEntry((l + "_received_USDN"), M), ScriptTransfer(s.caller, M, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] |
---|
| 94 | + | let l = toString(r.caller) |
---|
| 95 | + | let K = r.payments[0].amount |
---|
| 96 | + | let L = (K * (q() / 1000000)) |
---|
| 97 | + | [IntegerEntry((l + "_redeemed_WAVES3L"), K), IntegerEntry((l + "_received_USDN"), L), ScriptTransfer(r.caller, L, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] |
---|
101 | 98 | | } |
---|
102 | 99 | | |
---|
103 | 100 | | |
---|
104 | 101 | | |
---|
105 | | - | @Callable(s) |
---|
106 | | - | func mintWaves3L_v2 () = if (if ((size(s.payments) != 1)) |
---|
| 102 | + | @Callable(r) |
---|
| 103 | + | func mintWaves3L_v2 () = if (if ((size(r.payments) != 1)) |
---|
107 | 104 | | then true |
---|
108 | | - | else (s.payments[0].amount == 0)) |
---|
| 105 | + | else (r.payments[0].amount == 0)) |
---|
109 | 106 | | then throw("1 payment has to be attached") |
---|
110 | 107 | | else { |
---|
111 | | - | let l = toString(s.caller) |
---|
112 | | - | let t = s.payments[0].amount |
---|
113 | | - | let u = ((t / 2000000) * 100000000) |
---|
114 | | - | let v = j("WAVES", s.caller) |
---|
115 | | - | let N = ((3 - 1) * n()) |
---|
116 | | - | if ((t >= N)) |
---|
| 108 | + | let l = toString(r.caller) |
---|
| 109 | + | let s = r.payments[0].amount |
---|
| 110 | + | let t = ((s / 2000000) * 100000000) |
---|
| 111 | + | let u = j("WAVES", r.caller) |
---|
| 112 | + | let M = ((3 - 1) * n()) |
---|
| 113 | + | if ((s >= M)) |
---|
117 | 114 | | then { |
---|
118 | | - | let w = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, u)]) |
---|
119 | | - | if ((w == w)) |
---|
| 115 | + | let v = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, t)]) |
---|
| 116 | + | if ((v == v)) |
---|
120 | 117 | | then { |
---|
121 | | - | func x (y,z) = { |
---|
122 | | - | let A = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", t], nil) |
---|
123 | | - | if ((A == A)) |
---|
124 | | - | then (y + z) |
---|
| 118 | + | func w (x,y) = { |
---|
| 119 | + | let z = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", s], nil) |
---|
| 120 | + | if ((z == z)) |
---|
| 121 | + | then (x + y) |
---|
125 | 122 | | else throw("Strict value is not equal to itself.") |
---|
126 | 123 | | } |
---|
127 | 124 | | |
---|
128 | | - | let B = [t, t, t] |
---|
129 | | - | let C = { |
---|
130 | | - | let D = B |
---|
131 | | - | let E = size(D) |
---|
132 | | - | let F = 0 |
---|
133 | | - | func G (H,I) = if ((I >= E)) |
---|
134 | | - | then H |
---|
135 | | - | else x(H, D[I]) |
---|
| 125 | + | let A = [s, s, s] |
---|
| 126 | + | let B = { |
---|
| 127 | + | let C = A |
---|
| 128 | + | let D = size(C) |
---|
| 129 | + | let E = 0 |
---|
| 130 | + | func F (G,H) = if ((H >= D)) |
---|
| 131 | + | then G |
---|
| 132 | + | else w(G, C[H]) |
---|
136 | 133 | | |
---|
137 | | - | func J (H,I) = if ((I >= E)) |
---|
138 | | - | then H |
---|
| 134 | + | func I (G,H) = if ((H >= D)) |
---|
| 135 | + | then G |
---|
139 | 136 | | else throw("List size exceeds 3") |
---|
140 | 137 | | |
---|
141 | | - | J(G(G(G(F, 0), 1), 2), 3) |
---|
| 138 | + | I(F(F(F(E, 0), 1), 2), 3) |
---|
142 | 139 | | } |
---|
143 | | - | let O = ((C / n()) * 100000000) |
---|
144 | | - | [IntegerEntry((l + "_gave_USDN"), t), IntegerEntry((l + "_deposited_WAVES"), u), IntegerEntry(((l + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), C), IntegerEntry((l + "_received_WAVES3L"), 1000000), ScriptTransfer(s.caller, 1000000, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] |
---|
| 140 | + | let N = ((B / n()) * 100000000) |
---|
| 141 | + | [IntegerEntry((l + "_gave_USDN"), s), IntegerEntry((l + "_deposited_WAVES"), t), IntegerEntry(((l + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), B), IntegerEntry((l + "_received_WAVES3L"), 1000000), ScriptTransfer(r.caller, 1000000, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] |
---|
145 | 142 | | } |
---|
146 | 143 | | else throw("Strict value is not equal to itself.") |
---|
147 | 144 | | } |
---|
|
150 | 147 | | |
---|
151 | 148 | | |
---|
152 | 149 | | |
---|
153 | | - | @Callable(s) |
---|
154 | | - | func redeemWaves3L_v2 () = if (if ((size(s.payments) != 1)) |
---|
| 150 | + | @Callable(r) |
---|
| 151 | + | func redeemWaves3L_v2 () = if (if ((size(r.payments) != 1)) |
---|
155 | 152 | | then true |
---|
156 | | - | else (s.payments[0].amount == 0)) |
---|
| 153 | + | else (r.payments[0].amount == 0)) |
---|
157 | 154 | | then throw("1 payment has to be attached") |
---|
158 | 155 | | else { |
---|
159 | | - | let l = toString(s.caller) |
---|
160 | | - | let L = 6 |
---|
161 | | - | let M = (((L * (o() / 1000000)) - 4) * 1000000) |
---|
162 | | - | [IntegerEntry((l + "_redeemed_WAVES3L"), L), IntegerEntry((l + "_received_USDN"), M), ScriptTransfer(s.caller, M, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] |
---|
| 156 | + | let l = toString(r.caller) |
---|
| 157 | + | let K = 6 |
---|
| 158 | + | let L = (((K * (o() / 1000000)) - 4) * 1000000) |
---|
| 159 | + | [IntegerEntry((l + "_redeemed_WAVES3L"), K), IntegerEntry((l + "_received_USDN"), L), ScriptTransfer(r.caller, L, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] |
---|
163 | 160 | | } |
---|
164 | 161 | | |
---|
165 | 162 | | |
---|
166 | | - | |
---|
167 | | - | @Callable(s) |
---|
168 | | - | func checkBalance (k) = { |
---|
169 | | - | let l = s.caller |
---|
170 | | - | if ((k == "WAVES")) |
---|
171 | | - | then [IntegerEntry("Waves Balance", wavesBalance(l).available)] |
---|
172 | | - | else [IntegerEntry("Asset Balance", assetBalance(l, fromBase58String(k)))] |
---|
173 | | - | } |
---|
174 | | - | |
---|
175 | | - | |
---|
176 | | - | @Verifier(P) |
---|
177 | | - | func Q () = sigVerify(P.bodyBytes, P.proofs[0], P.senderPublicKey) |
---|
| 163 | + | @Verifier(O) |
---|
| 164 | + | func P () = sigVerify(O.bodyBytes, O.proofs[0], O.senderPublicKey) |
---|
178 | 165 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = Address(base58'CygdaJKZfxRrHyYMwkNdz9ZgSD5FpJLtk5s5B4q1DKV6') |
---|
5 | 5 | | |
---|
6 | 6 | | let b = Address(base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM') |
---|
7 | 7 | | |
---|
8 | 8 | | let c = Address(base58'2qUH6Nh6cgC8dxj8fwH3bTJi261PNr5nMQKRbBXBuwmM') |
---|
9 | 9 | | |
---|
10 | 10 | | let d = [1, 2, 3, 4, 5] |
---|
11 | 11 | | |
---|
12 | 12 | | let e = [1, 2] |
---|
13 | 13 | | |
---|
14 | 14 | | let f = [1, 2, 3] |
---|
15 | 15 | | |
---|
16 | 16 | | func g (h,i) = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", 1000000], nil) |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | func j (k,l) = if ((k == "WAVES")) |
---|
20 | 20 | | then wavesBalance(l).available |
---|
21 | 21 | | else assetBalance(l, fromBase58String(k)) |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | func m (k) = if ((k == "WAVES")) |
---|
25 | 25 | | then 2 |
---|
26 | 26 | | else throw("Error") |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | func n () = 2000000 |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | func o () = 3000000 |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | | - | func p () = 1500000 |
---|
| 35 | + | func p () = 1200000 |
---|
36 | 36 | | |
---|
37 | 37 | | |
---|
38 | | - | func q () = 1200000 |
---|
| 38 | + | func q () = 2000000 |
---|
39 | 39 | | |
---|
40 | 40 | | |
---|
41 | | - | func r () = 2000000 |
---|
42 | | - | |
---|
43 | | - | |
---|
44 | | - | @Callable(s) |
---|
45 | | - | func mintWaves3L_v1 () = if (if ((size(s.payments) != 1)) |
---|
| 41 | + | @Callable(r) |
---|
| 42 | + | func mintWaves3L_v1 () = if (if ((size(r.payments) != 1)) |
---|
46 | 43 | | then true |
---|
47 | | - | else (s.payments[0].amount == 0)) |
---|
| 44 | + | else (r.payments[0].amount == 0)) |
---|
48 | 45 | | then throw("1 payment has to be attached") |
---|
49 | 46 | | else { |
---|
50 | | - | let l = toString(s.caller) |
---|
51 | | - | let t = s.payments[0].amount |
---|
52 | | - | let u = ((t / n()) * 100000000) |
---|
53 | | - | let v = j("WAVES", s.caller) |
---|
54 | | - | if ((v > u)) |
---|
| 47 | + | let l = toString(r.caller) |
---|
| 48 | + | let s = r.payments[0].amount |
---|
| 49 | + | let t = ((s / n()) * 100000000) |
---|
| 50 | + | let u = j("WAVES", r.caller) |
---|
| 51 | + | if ((u > t)) |
---|
55 | 52 | | then { |
---|
56 | | - | let w = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, u)]) |
---|
57 | | - | if ((w == w)) |
---|
| 53 | + | let v = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, t)]) |
---|
| 54 | + | if ((v == v)) |
---|
58 | 55 | | then { |
---|
59 | | - | func x (y,z) = { |
---|
60 | | - | let A = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", t], nil) |
---|
61 | | - | if ((A == A)) |
---|
62 | | - | then (y + z) |
---|
| 56 | + | func w (x,y) = { |
---|
| 57 | + | let z = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", s], nil) |
---|
| 58 | + | if ((z == z)) |
---|
| 59 | + | then (x + y) |
---|
63 | 60 | | else throw("Strict value is not equal to itself.") |
---|
64 | 61 | | } |
---|
65 | 62 | | |
---|
66 | | - | let B = [t, t, t] |
---|
67 | | - | let C = { |
---|
68 | | - | let D = B |
---|
69 | | - | let E = size(D) |
---|
70 | | - | let F = 0 |
---|
71 | | - | func G (H,I) = if ((I >= E)) |
---|
72 | | - | then H |
---|
73 | | - | else x(H, D[I]) |
---|
| 63 | + | let A = [s, s, s] |
---|
| 64 | + | let B = { |
---|
| 65 | + | let C = A |
---|
| 66 | + | let D = size(C) |
---|
| 67 | + | let E = 0 |
---|
| 68 | + | func F (G,H) = if ((H >= D)) |
---|
| 69 | + | then G |
---|
| 70 | + | else w(G, C[H]) |
---|
74 | 71 | | |
---|
75 | | - | func J (H,I) = if ((I >= E)) |
---|
76 | | - | then H |
---|
| 72 | + | func I (G,H) = if ((H >= D)) |
---|
| 73 | + | then G |
---|
77 | 74 | | else throw("List size exceeds 3") |
---|
78 | 75 | | |
---|
79 | | - | J(G(G(G(F, 0), 1), 2), 3) |
---|
| 76 | + | I(F(F(F(E, 0), 1), 2), 3) |
---|
80 | 77 | | } |
---|
81 | | - | let K = ((C / q()) * 1000000) |
---|
82 | | - | [IntegerEntry((l + "_gave_USDN"), t), IntegerEntry((l + "_deposited_WAVES"), u), IntegerEntry(((l + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), C), IntegerEntry((l + "_received_WAVES3L"), K), ScriptTransfer(s.caller, K, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] |
---|
| 78 | + | let J = ((B / p()) * 1000000) |
---|
| 79 | + | [IntegerEntry((l + "_gave_USDN"), s), IntegerEntry((l + "_deposited_WAVES"), t), IntegerEntry(((l + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), B), IntegerEntry((l + "_received_WAVES3L"), J), ScriptTransfer(r.caller, J, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] |
---|
83 | 80 | | } |
---|
84 | 81 | | else throw("Strict value is not equal to itself.") |
---|
85 | 82 | | } |
---|
86 | 83 | | else throw("Not enough WAVES to deposit!") |
---|
87 | 84 | | } |
---|
88 | 85 | | |
---|
89 | 86 | | |
---|
90 | 87 | | |
---|
91 | | - | @Callable(s) |
---|
92 | | - | func redeemWaves3L_v1 () = if (if ((size(s.payments) != 1)) |
---|
| 88 | + | @Callable(r) |
---|
| 89 | + | func redeemWaves3L_v1 () = if (if ((size(r.payments) != 1)) |
---|
93 | 90 | | then true |
---|
94 | | - | else (s.payments[0].amount == 0)) |
---|
| 91 | + | else (r.payments[0].amount == 0)) |
---|
95 | 92 | | then throw("1 payment has to be attached") |
---|
96 | 93 | | else { |
---|
97 | | - | let l = toString(s.caller) |
---|
98 | | - | let L = s.payments[0].amount |
---|
99 | | - | let M = (L * (r() / 1000000)) |
---|
100 | | - | [IntegerEntry((l + "_redeemed_WAVES3L"), L), IntegerEntry((l + "_received_USDN"), M), ScriptTransfer(s.caller, M, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] |
---|
| 94 | + | let l = toString(r.caller) |
---|
| 95 | + | let K = r.payments[0].amount |
---|
| 96 | + | let L = (K * (q() / 1000000)) |
---|
| 97 | + | [IntegerEntry((l + "_redeemed_WAVES3L"), K), IntegerEntry((l + "_received_USDN"), L), ScriptTransfer(r.caller, L, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] |
---|
101 | 98 | | } |
---|
102 | 99 | | |
---|
103 | 100 | | |
---|
104 | 101 | | |
---|
105 | | - | @Callable(s) |
---|
106 | | - | func mintWaves3L_v2 () = if (if ((size(s.payments) != 1)) |
---|
| 102 | + | @Callable(r) |
---|
| 103 | + | func mintWaves3L_v2 () = if (if ((size(r.payments) != 1)) |
---|
107 | 104 | | then true |
---|
108 | | - | else (s.payments[0].amount == 0)) |
---|
| 105 | + | else (r.payments[0].amount == 0)) |
---|
109 | 106 | | then throw("1 payment has to be attached") |
---|
110 | 107 | | else { |
---|
111 | | - | let l = toString(s.caller) |
---|
112 | | - | let t = s.payments[0].amount |
---|
113 | | - | let u = ((t / 2000000) * 100000000) |
---|
114 | | - | let v = j("WAVES", s.caller) |
---|
115 | | - | let N = ((3 - 1) * n()) |
---|
116 | | - | if ((t >= N)) |
---|
| 108 | + | let l = toString(r.caller) |
---|
| 109 | + | let s = r.payments[0].amount |
---|
| 110 | + | let t = ((s / 2000000) * 100000000) |
---|
| 111 | + | let u = j("WAVES", r.caller) |
---|
| 112 | + | let M = ((3 - 1) * n()) |
---|
| 113 | + | if ((s >= M)) |
---|
117 | 114 | | then { |
---|
118 | | - | let w = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, u)]) |
---|
119 | | - | if ((w == w)) |
---|
| 115 | + | let v = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, t)]) |
---|
| 116 | + | if ((v == v)) |
---|
120 | 117 | | then { |
---|
121 | | - | func x (y,z) = { |
---|
122 | | - | let A = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", t], nil) |
---|
123 | | - | if ((A == A)) |
---|
124 | | - | then (y + z) |
---|
| 118 | + | func w (x,y) = { |
---|
| 119 | + | let z = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", s], nil) |
---|
| 120 | + | if ((z == z)) |
---|
| 121 | + | then (x + y) |
---|
125 | 122 | | else throw("Strict value is not equal to itself.") |
---|
126 | 123 | | } |
---|
127 | 124 | | |
---|
128 | | - | let B = [t, t, t] |
---|
129 | | - | let C = { |
---|
130 | | - | let D = B |
---|
131 | | - | let E = size(D) |
---|
132 | | - | let F = 0 |
---|
133 | | - | func G (H,I) = if ((I >= E)) |
---|
134 | | - | then H |
---|
135 | | - | else x(H, D[I]) |
---|
| 125 | + | let A = [s, s, s] |
---|
| 126 | + | let B = { |
---|
| 127 | + | let C = A |
---|
| 128 | + | let D = size(C) |
---|
| 129 | + | let E = 0 |
---|
| 130 | + | func F (G,H) = if ((H >= D)) |
---|
| 131 | + | then G |
---|
| 132 | + | else w(G, C[H]) |
---|
136 | 133 | | |
---|
137 | | - | func J (H,I) = if ((I >= E)) |
---|
138 | | - | then H |
---|
| 134 | + | func I (G,H) = if ((H >= D)) |
---|
| 135 | + | then G |
---|
139 | 136 | | else throw("List size exceeds 3") |
---|
140 | 137 | | |
---|
141 | | - | J(G(G(G(F, 0), 1), 2), 3) |
---|
| 138 | + | I(F(F(F(E, 0), 1), 2), 3) |
---|
142 | 139 | | } |
---|
143 | | - | let O = ((C / n()) * 100000000) |
---|
144 | | - | [IntegerEntry((l + "_gave_USDN"), t), IntegerEntry((l + "_deposited_WAVES"), u), IntegerEntry(((l + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), C), IntegerEntry((l + "_received_WAVES3L"), 1000000), ScriptTransfer(s.caller, 1000000, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] |
---|
| 140 | + | let N = ((B / n()) * 100000000) |
---|
| 141 | + | [IntegerEntry((l + "_gave_USDN"), s), IntegerEntry((l + "_deposited_WAVES"), t), IntegerEntry(((l + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), B), IntegerEntry((l + "_received_WAVES3L"), 1000000), ScriptTransfer(r.caller, 1000000, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] |
---|
145 | 142 | | } |
---|
146 | 143 | | else throw("Strict value is not equal to itself.") |
---|
147 | 144 | | } |
---|
148 | 145 | | else throw("Not enough WAVES to deposit!") |
---|
149 | 146 | | } |
---|
150 | 147 | | |
---|
151 | 148 | | |
---|
152 | 149 | | |
---|
153 | | - | @Callable(s) |
---|
154 | | - | func redeemWaves3L_v2 () = if (if ((size(s.payments) != 1)) |
---|
| 150 | + | @Callable(r) |
---|
| 151 | + | func redeemWaves3L_v2 () = if (if ((size(r.payments) != 1)) |
---|
155 | 152 | | then true |
---|
156 | | - | else (s.payments[0].amount == 0)) |
---|
| 153 | + | else (r.payments[0].amount == 0)) |
---|
157 | 154 | | then throw("1 payment has to be attached") |
---|
158 | 155 | | else { |
---|
159 | | - | let l = toString(s.caller) |
---|
160 | | - | let L = 6 |
---|
161 | | - | let M = (((L * (o() / 1000000)) - 4) * 1000000) |
---|
162 | | - | [IntegerEntry((l + "_redeemed_WAVES3L"), L), IntegerEntry((l + "_received_USDN"), M), ScriptTransfer(s.caller, M, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] |
---|
| 156 | + | let l = toString(r.caller) |
---|
| 157 | + | let K = 6 |
---|
| 158 | + | let L = (((K * (o() / 1000000)) - 4) * 1000000) |
---|
| 159 | + | [IntegerEntry((l + "_redeemed_WAVES3L"), K), IntegerEntry((l + "_received_USDN"), L), ScriptTransfer(r.caller, L, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] |
---|
163 | 160 | | } |
---|
164 | 161 | | |
---|
165 | 162 | | |
---|
166 | | - | |
---|
167 | | - | @Callable(s) |
---|
168 | | - | func checkBalance (k) = { |
---|
169 | | - | let l = s.caller |
---|
170 | | - | if ((k == "WAVES")) |
---|
171 | | - | then [IntegerEntry("Waves Balance", wavesBalance(l).available)] |
---|
172 | | - | else [IntegerEntry("Asset Balance", assetBalance(l, fromBase58String(k)))] |
---|
173 | | - | } |
---|
174 | | - | |
---|
175 | | - | |
---|
176 | | - | @Verifier(P) |
---|
177 | | - | func Q () = sigVerify(P.bodyBytes, P.proofs[0], P.senderPublicKey) |
---|
| 163 | + | @Verifier(O) |
---|
| 164 | + | func P () = sigVerify(O.bodyBytes, O.proofs[0], O.senderPublicKey) |
---|
178 | 165 | | |
---|