tx · BEciSQ1rLAsV2KpH5Md4NbXLJ7y9EidjyUZ73bUNMGxM 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq: -0.01000000 Waves 2023.07.25 23:49 [2681876] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves
{ "type": 13, "id": "BEciSQ1rLAsV2KpH5Md4NbXLJ7y9EidjyUZ73bUNMGxM", "fee": 1000000, "feeAssetId": null, "timestamp": 1690318095855, "version": 2, "chainId": 84, "sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq", "senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd", "proofs": [ "3vzH6AHVGhkAF4qNtTDXeRqpjM8te6evY4S1W25yZAt7eLFxLeTJL6QRkqLcq8m2Jeuo132X9JfKccz8aPTwweZ4" ], "script": "base64:BgI2CAISBAoCAQgSABIAEgASABIAEgASAwoBARIDCgEBEgMKAQESBAoCCAESABIECgIIARIDCgEIDgAJd2F2ZXMxTElkCQEHQWRkcmVzcwEBILH15FajP9PuifZAK5w8TIAJNqCYeFqn5MUfblsP6UaFAAl3YXZlczNMSWQJAQdBZGRyZXNzAQEgd1cMNeo2lN9O0xXcegEAmbtNEEfXDIqrV+HrcYvguGQACXdhdmVzNUxJZAkBB0FkZHJlc3MBASAbRmiSZTlYFNBubUQi5dTeIOXW7rvmiX4XxEsz9ehmpAADYXJyCQDMCAIAAQkAzAgCAAIJAMwIAgADCQDMCAIABAkAzAgCAAUFA25pbAAEYXJyMgkAzAgCAAEJAMwIAgACBQNuaWwABGFycjMJAMwIAgABCQDMCAIAAgkAzAgCAAMFA25pbAEDc3VtAgFhAWIJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQCBmJvcnJvdwkAzAgCAiwyNUZFcUVqUmtxSzZ5Q2tpVDdMejZTQVl6N2dVRkN0eGZDQ2huclZ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HJ5AgkArAICBQdhZGRyZXNzAgxzdXBwbHlfd2F2ZXMAwIQ9BQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEId2l0aGRyYXcCCmFzc2V0SWRTdHILYXNzZXRBbW91bnQEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBANyZXMJAPwHBAkBEUBleHRyTmF0aXZlKDEwNjIpAQIjM04zRG5WZmZuVXladHoyTVJiazVVN2dpTjExMldlbXBNTmQCCHdpdGhkcmF3CQDMCAIFCmFzc2V0SWRTdHIJAMwIAgULYXNzZXRBbW91bnQFA25pbAUDbmlsAwkAAAIFA3JlcwUDcmVzCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIJAKwCAgUHYWRkcmVzcwIKX3dpdGhkcmV3XwUKYXNzZXRJZFN0cgULYXNzZXRBbW91bnQFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgFpAQxjaGVja0JhbGFuY2UBCmFzc2V0SWRTdHIEB2FkZHJlc3MIBQFpBmNhbGxlcgMJAAACBQphc3NldElkU3RyAgVXQVZFUwkAzAgCCQEMSW50ZWdlckVudHJ5AgINV2F2ZXMgQmFsYW5jZQgJAO8HAQUHYWRkcmVzcwlhdmFpbGFibGUFA25pbAkAzAgCCQEMSW50ZWdlckVudHJ5AgINQXNzZXQgQmFsYW5jZQkA8AcCBQdhZGRyZXNzCQDZBAEFCmFzc2V0SWRTdHIFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXl6u8L9", "height": 2681876, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CvqUcJby4q1zC3e7GywVYLVShWLTzHubErfYDEQnim7i Next: BiBu1eFVJC8xavBXhnnbruyE3HnWCPFPqRwg8Zb7s6UP Diff:
Old | New | Differences | |
---|---|---|---|
35 | 35 | func getWaves3LCurrentPrice () = 1200000 | |
36 | 36 | ||
37 | 37 | ||
38 | - | func getWaves3LNewPrice () = | |
38 | + | func getWaves3LNewPrice () = 1300000 | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func transferWavesTestInternal (assetIdStr,assetAmount,address) = [IntegerEntry(((address + "_deposited_") + assetIdStr), assetAmount)] | |
122 | 122 | let address = toString(i.caller) | |
123 | 123 | let tokenAmount = i.payments[0].amount | |
124 | 124 | let returnedUSDNAmount = (tokenAmount * getWaves3LNewPrice()) | |
125 | - | [IntegerEntry((address + "_redeemed_WAVES3L"), tokenAmount), IntegerEntry((address + "_received_USDN"), returnedUSDNAmount) | |
125 | + | [IntegerEntry((address + "_redeemed_WAVES3L"), tokenAmount), IntegerEntry((address + "_received_USDN"), returnedUSDNAmount)] | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let waves1LId = Address(base58'CygdaJKZfxRrHyYMwkNdz9ZgSD5FpJLtk5s5B4q1DKV6') | |
5 | 5 | ||
6 | 6 | let waves3LId = Address(base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM') | |
7 | 7 | ||
8 | 8 | let waves5LId = Address(base58'2qUH6Nh6cgC8dxj8fwH3bTJi261PNr5nMQKRbBXBuwmM') | |
9 | 9 | ||
10 | 10 | let arr = [1, 2, 3, 4, 5] | |
11 | 11 | ||
12 | 12 | let arr2 = [1, 2] | |
13 | 13 | ||
14 | 14 | let arr3 = [1, 2, 3] | |
15 | 15 | ||
16 | 16 | func sum (a,b) = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", 1000000], nil) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func getBalance (assetIdStr,address) = if ((assetIdStr == "WAVES")) | |
20 | 20 | then wavesBalance(address).available | |
21 | 21 | else assetBalance(address, fromBase58String(assetIdStr)) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func getCurrentPrice (assetIdStr) = if ((assetIdStr == "WAVES")) | |
25 | 25 | then 2 | |
26 | 26 | else throw("Error") | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func getWavesCurrentPrice () = 2000000 | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func getWaves1LCurrentPrice () = 1500000 | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func getWaves3LCurrentPrice () = 1200000 | |
36 | 36 | ||
37 | 37 | ||
38 | - | func getWaves3LNewPrice () = | |
38 | + | func getWaves3LNewPrice () = 1300000 | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func transferWavesTestInternal (assetIdStr,assetAmount,address) = [IntegerEntry(((address + "_deposited_") + assetIdStr), assetAmount)] | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | @Callable(i) | |
45 | 45 | func transferWaves (assetAmount,senderAddress) = if ((i.caller != this)) | |
46 | 46 | then throw("only for internal smart contract invocations") | |
47 | 47 | else [ScriptTransfer(this, assetAmount, unit), IntegerEntry((senderAddress + "_deposited_WAVES"), assetAmount)] | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | ||
51 | 51 | @Callable(i) | |
52 | 52 | func issue3xLong () = [Issue("WAVES3L", "WAVES_USDN_LONG3X Token", 1000000000, 6, true)] | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | ||
56 | 56 | @Callable(i) | |
57 | 57 | func transferWavesTest () = if (if ((size(i.payments) != 1)) | |
58 | 58 | then true | |
59 | 59 | else (i.payments[0].amount == 0)) | |
60 | 60 | then throw("1 payment has to be attached") | |
61 | 61 | else { | |
62 | 62 | let assetIdStr = "WAVES" | |
63 | 63 | let assetAmount = i.payments[0].amount | |
64 | 64 | transferWavesTestInternal(assetIdStr, assetAmount, toString(i.caller)) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | ||
69 | 69 | @Callable(i) | |
70 | 70 | func mintWaves3L () = if (if ((size(i.payments) != 1)) | |
71 | 71 | then true | |
72 | 72 | else (i.payments[0].amount == 0)) | |
73 | 73 | then throw("1 payment has to be attached") | |
74 | 74 | else { | |
75 | 75 | let address = toString(i.caller) | |
76 | 76 | let stableCoinAmount = i.payments[0].amount | |
77 | 77 | let convertedWavesAmount = ((stableCoinAmount / getWavesCurrentPrice()) * 100000000) | |
78 | 78 | let userWavesAmount = getBalance("WAVES", i.caller) | |
79 | 79 | if ((userWavesAmount > convertedWavesAmount)) | |
80 | 80 | then { | |
81 | 81 | let depositResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, convertedWavesAmount)]) | |
82 | 82 | if ((depositResult == depositResult)) | |
83 | 83 | then { | |
84 | 84 | func repeatFunc (accum,next) = { | |
85 | 85 | let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", stableCoinAmount], nil) | |
86 | 86 | if ((borrowResult == borrowResult)) | |
87 | 87 | then (accum + next) | |
88 | 88 | else throw("Strict value is not equal to itself.") | |
89 | 89 | } | |
90 | 90 | ||
91 | 91 | let array = [stableCoinAmount, stableCoinAmount, stableCoinAmount] | |
92 | 92 | let res = { | |
93 | 93 | let $l = array | |
94 | 94 | let $s = size($l) | |
95 | 95 | let $acc0 = 0 | |
96 | 96 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
97 | 97 | then $a | |
98 | 98 | else repeatFunc($a, $l[$i]) | |
99 | 99 | ||
100 | 100 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
101 | 101 | then $a | |
102 | 102 | else throw("List size exceeds 3") | |
103 | 103 | ||
104 | 104 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
105 | 105 | } | |
106 | 106 | let returnedTokenAmount = ((res / getWaves3LCurrentPrice()) * 1000000) | |
107 | 107 | [IntegerEntry((address + "_gave_USDN"), stableCoinAmount), IntegerEntry((address + "_deposited_WAVES"), convertedWavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), res), IntegerEntry((address + "_received_WAVES3L"), returnedTokenAmount), ScriptTransfer(i.caller, returnedTokenAmount, base58'92rW5ucGkH84YeXLnLs8dMN1P7RAFocmR8zfBqUy4gPM')] | |
108 | 108 | } | |
109 | 109 | else throw("Strict value is not equal to itself.") | |
110 | 110 | } | |
111 | 111 | else throw("Not enough WAVES to deposit!") | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | ||
116 | 116 | @Callable(i) | |
117 | 117 | func redeemWaves3L () = if (if ((size(i.payments) != 1)) | |
118 | 118 | then true | |
119 | 119 | else (i.payments[0].amount == 0)) | |
120 | 120 | then throw("1 payment has to be attached") | |
121 | 121 | else { | |
122 | 122 | let address = toString(i.caller) | |
123 | 123 | let tokenAmount = i.payments[0].amount | |
124 | 124 | let returnedUSDNAmount = (tokenAmount * getWaves3LNewPrice()) | |
125 | - | [IntegerEntry((address + "_redeemed_WAVES3L"), tokenAmount), IntegerEntry((address + "_received_USDN"), returnedUSDNAmount) | |
125 | + | [IntegerEntry((address + "_redeemed_WAVES3L"), tokenAmount), IntegerEntry((address + "_received_USDN"), returnedUSDNAmount)] | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | ||
130 | 130 | @Callable(i) | |
131 | 131 | func mintWaves3L_test () = if (if ((size(i.payments) != 1)) | |
132 | 132 | then true | |
133 | 133 | else (i.payments[0].amount == 0)) | |
134 | 134 | then throw("1 payment has to be attached") | |
135 | 135 | else { | |
136 | 136 | let address = toString(i.caller) | |
137 | 137 | let stableCoinAmount = i.payments[0].amount | |
138 | 138 | [IntegerEntry((address + "_gave_USDN"), stableCoinAmount)] | |
139 | 139 | } | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | ||
143 | 143 | @Callable(i) | |
144 | 144 | func long3x_v2 () = if (if ((size(i.payments) != 1)) | |
145 | 145 | then true | |
146 | 146 | else (i.payments[0].amount == 0)) | |
147 | 147 | then throw("1 payment has to be attached") | |
148 | 148 | else { | |
149 | 149 | let address = toString(i.caller) | |
150 | 150 | let assetIdStr = "WAVES" | |
151 | 151 | let wavesAmount = i.payments[0].amount | |
152 | 152 | let currentWavesAmount = getBalance(assetIdStr, i.caller) | |
153 | 153 | if ((currentWavesAmount > wavesAmount)) | |
154 | 154 | then { | |
155 | 155 | let depositResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, wavesAmount)]) | |
156 | 156 | if ((depositResult == depositResult)) | |
157 | 157 | then { | |
158 | 158 | func repeatFunc (accum,next) = { | |
159 | 159 | let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((wavesAmount * getCurrentPrice("WAVES")) / 100)], nil) | |
160 | 160 | if ((borrowResult == borrowResult)) | |
161 | 161 | then (accum + next) | |
162 | 162 | else throw("Strict value is not equal to itself.") | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | let array = [wavesAmount, wavesAmount] | |
166 | 166 | let res = { | |
167 | 167 | let $l = array | |
168 | 168 | let $s = size($l) | |
169 | 169 | let $acc0 = 0 | |
170 | 170 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
171 | 171 | then $a | |
172 | 172 | else repeatFunc($a, $l[$i]) | |
173 | 173 | ||
174 | 174 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
175 | 175 | then $a | |
176 | 176 | else throw("List size exceeds 3") | |
177 | 177 | ||
178 | 178 | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
179 | 179 | } | |
180 | 180 | [IntegerEntry((address + "_deposited_WAVES"), wavesAmount), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (wavesAmount * getCurrentPrice("WAVES"))), ScriptTransfer(i.caller, ((res * getCurrentPrice("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] | |
181 | 181 | } | |
182 | 182 | else throw("Strict value is not equal to itself.") | |
183 | 183 | } | |
184 | 184 | else throw("Not enough WAVES to deposit!") | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(i) | |
190 | 190 | func long2x (assetAmount) = { | |
191 | 191 | let address = toString(i.caller) | |
192 | 192 | let currentAmount = getBalance("WAVES", i.caller) | |
193 | 193 | if ((currentAmount > assetAmount)) | |
194 | 194 | then { | |
195 | 195 | func repeatFunc (accum,next) = { | |
196 | 196 | let transferResult = invoke(this, "transferWaves", [assetAmount, i.caller], nil) | |
197 | 197 | if ((transferResult == transferResult)) | |
198 | 198 | then { | |
199 | 199 | let supplyResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, assetAmount)]) | |
200 | 200 | if ((supplyResult == supplyResult)) | |
201 | 201 | then { | |
202 | 202 | let borrowResult = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", ((assetAmount * getCurrentPrice("WAVES")) / 100)], nil) | |
203 | 203 | if ((borrowResult == borrowResult)) | |
204 | 204 | then (accum + next) | |
205 | 205 | else throw("Strict value is not equal to itself.") | |
206 | 206 | } | |
207 | 207 | else throw("Strict value is not equal to itself.") | |
208 | 208 | } | |
209 | 209 | else throw("Strict value is not equal to itself.") | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | let array = [assetAmount, assetAmount] | |
213 | 213 | let res = { | |
214 | 214 | let $l = array | |
215 | 215 | let $s = size($l) | |
216 | 216 | let $acc0 = 0 | |
217 | 217 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
218 | 218 | then $a | |
219 | 219 | else repeatFunc($a, $l[$i]) | |
220 | 220 | ||
221 | 221 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
222 | 222 | then $a | |
223 | 223 | else throw("List size exceeds 2") | |
224 | 224 | ||
225 | 225 | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
226 | 226 | } | |
227 | 227 | [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), (assetAmount * getCurrentPrice("WAVES"))), ScriptTransfer(i.caller, ((res * getCurrentPrice("WAVES")) / 100), base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), ScriptTransfer(this, res, unit)] | |
228 | 228 | } | |
229 | 229 | else throw("Error!") | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | ||
234 | 234 | @Callable(i) | |
235 | 235 | func borrow (assetAmount) = { | |
236 | 236 | let address = toString(i.caller) | |
237 | 237 | let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil) | |
238 | 238 | if ((res == res)) | |
239 | 239 | then [ScriptTransfer(i.caller, assetAmount, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT'), IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount)] | |
240 | 240 | else throw("Strict value is not equal to itself.") | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | ||
245 | 245 | @Callable(i) | |
246 | 246 | func borrow2 (assetAmount) = { | |
247 | 247 | let address = toString(i.caller) | |
248 | 248 | func repeatFunc (accum,next) = { | |
249 | 249 | let result = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", assetAmount], nil) | |
250 | 250 | if ((result == result)) | |
251 | 251 | then (accum + next) | |
252 | 252 | else throw("Strict value is not equal to itself.") | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | let array = [assetAmount, assetAmount] | |
256 | 256 | let res = { | |
257 | 257 | let $l = array | |
258 | 258 | let $s = size($l) | |
259 | 259 | let $acc0 = 0 | |
260 | 260 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
261 | 261 | then $a | |
262 | 262 | else repeatFunc($a, $l[$i]) | |
263 | 263 | ||
264 | 264 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
265 | 265 | then $a | |
266 | 266 | else throw("List size exceeds 2") | |
267 | 267 | ||
268 | 268 | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) | |
269 | 269 | } | |
270 | 270 | [IntegerEntry(((address + "_borrowed_") + "25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT"), assetAmount), ScriptTransfer(i.caller, res, base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT')] | |
271 | 271 | } | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | ||
275 | 275 | @Callable(i) | |
276 | 276 | func borrow5 (assetIdStr,assetAmount) = { | |
277 | 277 | let address = toString(i.caller) | |
278 | 278 | let res = { | |
279 | 279 | let $l = arr | |
280 | 280 | let $s = size($l) | |
281 | 281 | let $acc0 = 0 | |
282 | 282 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
283 | 283 | then $a | |
284 | 284 | else sum($a, $l[$i]) | |
285 | 285 | ||
286 | 286 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
287 | 287 | then $a | |
288 | 288 | else throw("List size exceeds 5") | |
289 | 289 | ||
290 | 290 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
291 | 291 | } | |
292 | 292 | if ((res == res)) | |
293 | 293 | then [IntegerEntry(((address + "_borrowed_") + assetIdStr), assetAmount)] | |
294 | 294 | else throw("Strict value is not equal to itself.") | |
295 | 295 | } | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | ||
299 | 299 | @Callable(i) | |
300 | 300 | func deposit () = { | |
301 | 301 | let address = toString(i.caller) | |
302 | 302 | let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "supply", nil, [AttachedPayment(unit, 1000000)]) | |
303 | 303 | if ((res == res)) | |
304 | 304 | then [IntegerEntry((address + "supply_waves"), 1000000)] | |
305 | 305 | else throw("Strict value is not equal to itself.") | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | ||
310 | 310 | @Callable(i) | |
311 | 311 | func withdraw (assetIdStr,assetAmount) = { | |
312 | 312 | let address = toString(i.caller) | |
313 | 313 | let res = invoke(addressFromStringValue("3N3DnVffnUyZtz2MRbk5U7giN112WempMNd"), "withdraw", [assetIdStr, assetAmount], nil) | |
314 | 314 | if ((res == res)) | |
315 | 315 | then [IntegerEntry(((address + "_withdrew_") + assetIdStr), assetAmount)] | |
316 | 316 | else throw("Strict value is not equal to itself.") | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | ||
321 | 321 | @Callable(i) | |
322 | 322 | func checkBalance (assetIdStr) = { | |
323 | 323 | let address = i.caller | |
324 | 324 | if ((assetIdStr == "WAVES")) | |
325 | 325 | then [IntegerEntry("Waves Balance", wavesBalance(address).available)] | |
326 | 326 | else [IntegerEntry("Asset Balance", assetBalance(address, fromBase58String(assetIdStr)))] | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | @Verifier(tx) | |
331 | 331 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
332 | 332 |
github/deemru/w8io/169f3d6 67.30 ms ◑