tx · 9aBH92b3hn3HatvhAPM7DJfpFMRRGJWfSjZSkn4YsVpC 3N6LyfP6LxBjzYtYf54srGheVuiSB9ttGUF: -0.10000000 Waves 2022.08.17 15:15 [2188448] smart account 3N6LyfP6LxBjzYtYf54srGheVuiSB9ttGUF > SELF 0.00000000 Waves
{ "type": 13, "id": "9aBH92b3hn3HatvhAPM7DJfpFMRRGJWfSjZSkn4YsVpC", "fee": 10000000, "feeAssetId": null, "timestamp": 1660738619735, "version": 1, "sender": "3N6LyfP6LxBjzYtYf54srGheVuiSB9ttGUF", "senderPublicKey": "9AsixHLToi7ec4DDAdqr87SFn1LZKokqm24AQ8Uu7MAu", "proofs": [ "3ccSTgRoZqcDeFHmwHVceNEVBw2LfFtgk4E1iLZCLtnptD3o6sxY6C98JQhvt2cF363Mrr2TarcAGEi81NZMVXue" ], "script": "base64:BgJzCAISBgoEAQEBARIJCgcICAgIAQEBEgMKAQESBQoDAQEBEgQKAgEBEgUKAwEBARIECgIBARIECgIBARIAEgASBgoEAQEBBBIECgIBARIAEgQKAgEBEgASABIDCgEIEgASABIDCgEBEgASABIDCgEEEgASAEAAB05fQ09JTlMAAwAPRkVFX0RFTk9NSU5BVE9SAIDIr6AlAAlQUkVDSVNJT04AwIQ9AAhERUNJTUFMUwAGAA1NQVhfQURNSU5fRkVFAIDIr6AlAAdNQVhfRkVFAIDkl9ASAAVNQVhfQQDAhD0ADE1BWF9BX0NIQU5HRQAKABNBRE1JTl9BQ1RJT05TX0RFTEFZCQBpAgkAaAIAAwCAowUAPAANTUlOX1JBTVBfVElNRQkAaQIAgKMFADwADVZQX0xPR19QRVJJT0QAgLiZKQAMVlBfUFJFQ0lTSU9OAICglKWNHQAHY29pbnNfMAkA2QQBCQERQGV4dHJOYXRpdmUoMTA1MykCBQR0aGlzAgdjb2luc18wAAdjb2luc18xCQDZBAEJARFAZXh0ck5hdGl2ZSgxMDUzKQIFBHRoaXMCB2NvaW5zXzEAB2NvaW5zXzIJANkEAQkBEUBleHR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MwIAgATCQDMCAIAFAkAzAgCABUJAMwIAgAWCQDMCAIAFwkAzAgCABgJAMwIAgAZCQDMCAIAGgkAzAgCABsJAMwIAgAcCQDMCAIAHQUDbmlsBAdsaXN0MzBtCQDMCAIA////////////AQkAzAgCAP7//////////wEJAMwIAgD9//////////8BCQDMCAIA/P//////////AQkAzAgCAPv//////////wEJAMwIAgD6//////////8BCQDMCAIA+f//////////AQkAzAgCAPj//////////wEJAMwIAgD3//////////8BCQDMCAIA9v//////////AQkAzAgCAPX//////////wEJAMwIAgD0//////////8BCQDMCAIA8///////////AQkAzAgCAPL//////////wEJAMwIAgDx//////////8BCQDMCAIA8P//////////AQkAzAgCAO///////////wEJAMwIAgDu//////////8BCQDMCAIA7f//////////AQkAzAgCAOz//////////wEJAMwIAgDr//////////8BCQDMCAIA6v//////////AQkAzAgCAOn//////////wEJAMwIAgDo//////////8BCQDMCAIA5///////////AQkAzAgCAOb//////////wEJAMwIAgDl//////////8BCQDMCAIA5P//////////AQkAzAgCAOP//////////wEJAMwIAgDi//////////8BBQNuaWwECHZhbHVlMzBwCgACJGwFB2xpc3QzMHAKAAIkcwkAkAMBBQIkbAoABSRhY2MwAgAKAQUkZjBfMQICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkBBGZvbGQCBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDMwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEF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VyBQVvd25lcgkAAgECCm9ubHkgb3duZXIJAMwIAgkBDEJvb2xlYW5FbnRyeQICDGlzX2F1dG9fZmVlcwUNX2lzX2F1dG9fZmVlcwUDbmlsA21zZwEHa2lsbF9tZQADCQEGYXNzZXJ0AQkAAAIIBQNtc2cGY2FsbGVyBQVvd25lcgkAAgECCm9ubHkgb3duZXIDCQEGYXNzZXJ0AQkAZgIFDWtpbGxfZGVhZGxpbmUFD2Jsb2NrX3RpbWVzdGFtcAkAAgECE2RlYWRsaW5lIGhhcyBwYXNzZWQJAMwIAgkBDEJvb2xlYW5FbnRyeQICCWlzX2tpbGxlZAYFA25pbANtc2cBCXVua2lsbF9tZQADCQEGYXNzZXJ0AQkAAAIIBQNtc2cGY2FsbGVyBQVvd25lcgkAAgECCm9ubHkgb3duZXIJAMwIAgkBDEJvb2xlYW5FbnRyeQICCWlzX2tpbGxlZAcFA25pbABsxC59", "chainId": 84, "height": 2188448, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let N_COINS = 3 | |
5 | + | ||
6 | + | let FEE_DENOMINATOR = 10000000000 | |
7 | + | ||
8 | + | let PRECISION = 1000000 | |
9 | + | ||
10 | + | let DECIMALS = 6 | |
11 | + | ||
12 | + | let MAX_ADMIN_FEE = 10000000000 | |
13 | + | ||
14 | + | let MAX_FEE = 5000000000 | |
15 | + | ||
16 | + | let MAX_A = 1000000 | |
17 | + | ||
18 | + | let MAX_A_CHANGE = 10 | |
19 | + | ||
20 | + | let ADMIN_ACTIONS_DELAY = ((3 * 86400) / 60) | |
21 | + | ||
22 | + | let MIN_RAMP_TIME = (86400 / 60) | |
23 | + | ||
24 | + | let VP_LOG_PERIOD = 86400000 | |
25 | + | ||
26 | + | let VP_PRECISION = 1000000000000 | |
27 | + | ||
28 | + | let coins_0 = fromBase58String(getStringValue(this, "coins_0")) | |
29 | + | ||
30 | + | let coins_1 = fromBase58String(getStringValue(this, "coins_1")) | |
31 | + | ||
32 | + | let coins_2 = fromBase58String(getStringValue(this, "coins_2")) | |
33 | + | ||
34 | + | let balances_0 = valueOrElse(getInteger(this, "balances_0"), 0) | |
35 | + | ||
36 | + | let balances_1 = valueOrElse(getInteger(this, "balances_1"), 0) | |
37 | + | ||
38 | + | let balances_2 = valueOrElse(getInteger(this, "balances_2"), 0) | |
39 | + | ||
40 | + | let balances = $Tuple3(balances_0, balances_1, balances_2) | |
41 | + | ||
42 | + | let fee = getIntegerValue(this, "fee") | |
43 | + | ||
44 | + | let admin_fee = getIntegerValue(this, "admin_fee") | |
45 | + | ||
46 | + | let is_auto_fees = getBooleanValue(this, "is_auto_fees") | |
47 | + | ||
48 | + | let owner = addressFromStringValue(getStringValue(this, "owner")) | |
49 | + | ||
50 | + | let token = fromBase58String(getStringValue(this, "token")) | |
51 | + | ||
52 | + | let token_quantity = value(assetInfo(token)).quantity | |
53 | + | ||
54 | + | let initial_A = getIntegerValue(this, "initial_A") | |
55 | + | ||
56 | + | let future_A = getIntegerValue(this, "future_A") | |
57 | + | ||
58 | + | let initial_A_time = valueOrElse(getInteger(this, "initial_A_time"), 0) | |
59 | + | ||
60 | + | let future_A_time = valueOrElse(getInteger(this, "future_A_time"), 0) | |
61 | + | ||
62 | + | let admin_actions_deadline = valueOrElse(getInteger(this, "admin_actions_deadline"), 0) | |
63 | + | ||
64 | + | let transfer_ownership_deadline = valueOrElse(getInteger(this, "transfer_ownership_deadline"), 0) | |
65 | + | ||
66 | + | let future_fee = getIntegerValue(this, "future_fee") | |
67 | + | ||
68 | + | let future_admin_fee = getIntegerValue(this, "future_admin_fee") | |
69 | + | ||
70 | + | let future_owner = getStringValue(this, "future_owner") | |
71 | + | ||
72 | + | let is_killed = getBooleanValue(this, "is_killed") | |
73 | + | ||
74 | + | let kill_deadline = getIntegerValue(this, "kill_deadline") | |
75 | + | ||
76 | + | let KILL_DEADLINE_DT = (((2 * 30) * 86400) / 60) | |
77 | + | ||
78 | + | let big0 = toBigInt(0) | |
79 | + | ||
80 | + | let big1 = toBigInt(1) | |
81 | + | ||
82 | + | let big2 = toBigInt(2) | |
83 | + | ||
84 | + | let big3 = toBigInt(3) | |
85 | + | ||
86 | + | let big4 = toBigInt(4) | |
87 | + | ||
88 | + | let big27 = toBigInt(27) | |
89 | + | ||
90 | + | let configAddress = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, "config"), "no settings defined")), "bad settings address") | |
91 | + | ||
92 | + | let HEIGHT = height | |
93 | + | ||
94 | + | let block_timestamp = HEIGHT | |
95 | + | ||
96 | + | func assert (a) = if (a) | |
97 | + | then false | |
98 | + | else true | |
99 | + | ||
100 | + | ||
101 | + | func x_i (x,i) = if ((i == 0)) | |
102 | + | then x._1 | |
103 | + | else if ((i == 1)) | |
104 | + | then x._2 | |
105 | + | else if ((i == 2)) | |
106 | + | then x._3 | |
107 | + | else throw("index out of N_COINS") | |
108 | + | ||
109 | + | ||
110 | + | func admin_balance (i) = if ((i == 0)) | |
111 | + | then (assetBalance(this, coins_0) - balances_0) | |
112 | + | else if ((i == 1)) | |
113 | + | then (assetBalance(this, coins_1) - balances_1) | |
114 | + | else if ((i == 2)) | |
115 | + | then (assetBalance(this, coins_2) - balances_2) | |
116 | + | else throw("index out of N_COINS") | |
117 | + | ||
118 | + | ||
119 | + | func checkAddress (a58) = { | |
120 | + | let a = addressFromStringValue(a58) | |
121 | + | toString(a) | |
122 | + | } | |
123 | + | ||
124 | + | ||
125 | + | func _A () = { | |
126 | + | let t1 = future_A_time | |
127 | + | let A1 = future_A | |
128 | + | if ((t1 > block_timestamp)) | |
129 | + | then { | |
130 | + | let A0 = initial_A | |
131 | + | let t0 = initial_A_time | |
132 | + | if ((A1 > A0)) | |
133 | + | then (A0 + (((A1 - A0) * (block_timestamp - t0)) / (t1 - t0))) | |
134 | + | else (A0 - (((A0 - A1) * (block_timestamp - t0)) / (t1 - t0))) | |
135 | + | } | |
136 | + | else A1 | |
137 | + | } | |
138 | + | ||
139 | + | ||
140 | + | func _xp () = balances | |
141 | + | ||
142 | + | ||
143 | + | func _xp_mem (_balances) = _balances | |
144 | + | ||
145 | + | ||
146 | + | func get_D (xp,amp) = { | |
147 | + | let @ = invoke(this, "D", [xp._1, xp._2, xp._3, amp], nil) | |
148 | + | if ($isInstanceOf(@, "Int")) | |
149 | + | then @ | |
150 | + | else throw(($getType(invoke(this, "D", [xp._1, xp._2, xp._3, amp], nil)) + " couldn't be cast to Int")) | |
151 | + | } | |
152 | + | ||
153 | + | ||
154 | + | func get_D_internal (xp0,xp1,xp2,amp) = { | |
155 | + | let S = ((xp0 + xp1) + xp2) | |
156 | + | if ((toInt(S) == 0)) | |
157 | + | then 0 | |
158 | + | else { | |
159 | + | let Ann = (amp * N_COINS) | |
160 | + | let AnnS = (toBigInt(Ann) * S) | |
161 | + | let Ann1 = toBigInt((Ann - 1)) | |
162 | + | let xd = (((xp0 * xp1) * xp2) * big27) | |
163 | + | func Dproc (acc,i) = if ((acc._2 == true)) | |
164 | + | then acc | |
165 | + | else { | |
166 | + | let Dprev = acc._1 | |
167 | + | let DprevDprev = (Dprev * Dprev) | |
168 | + | let D_P = ((DprevDprev * DprevDprev) / xd) | |
169 | + | let D = fraction((AnnS + (big3 * D_P)), Dprev, ((Ann1 * Dprev) + (big4 * D_P))) | |
170 | + | if ((D > Dprev)) | |
171 | + | then if ((1 >= toInt((D - Dprev)))) | |
172 | + | then $Tuple2(D, true) | |
173 | + | else $Tuple2(D, false) | |
174 | + | else if ((1 >= toInt((Dprev - D)))) | |
175 | + | then $Tuple2(D, true) | |
176 | + | else $Tuple2(D, false) | |
177 | + | } | |
178 | + | ||
179 | + | let $t046554762 = { | |
180 | + | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
181 | + | let $s = size($l) | |
182 | + | let $acc0 = $Tuple2(S, false) | |
183 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
184 | + | then $a | |
185 | + | else Dproc($a, $l[$i]) | |
186 | + | ||
187 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
188 | + | then $a | |
189 | + | else throw("List size exceeds 15") | |
190 | + | ||
191 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
192 | + | } | |
193 | + | let D = $t046554762._1 | |
194 | + | let finished = $t046554762._2 | |
195 | + | if ((finished == false)) | |
196 | + | then throw(("get_D() not finished with " + toString(D))) | |
197 | + | else toInt(D) | |
198 | + | } | |
199 | + | } | |
200 | + | ||
201 | + | ||
202 | + | func get_D_mem (_balances_0,_balances_1,_balances_2,amp) = get_D(_xp_mem($Tuple3(_balances_0, _balances_1, _balances_2)), amp) | |
203 | + | ||
204 | + | ||
205 | + | func get_y (i,j,x,xp_) = if (assert((i != j))) | |
206 | + | then throw("same coin") | |
207 | + | else if (assert(if ((j >= 0)) | |
208 | + | then (i >= 0) | |
209 | + | else false)) | |
210 | + | then throw("below zero") | |
211 | + | else if (assert(if ((N_COINS > j)) | |
212 | + | then (N_COINS > i) | |
213 | + | else false)) | |
214 | + | then throw("above N_COINS") | |
215 | + | else { | |
216 | + | let amp = _A() | |
217 | + | let D = get_D(xp_, amp) | |
218 | + | let Ann = (amp * N_COINS) | |
219 | + | func xs (acc,_i) = if ((_i == i)) | |
220 | + | then (acc ++ [x]) | |
221 | + | else if ((_i != j)) | |
222 | + | then (acc ++ [x_i(xp_, _i)]) | |
223 | + | else acc | |
224 | + | ||
225 | + | let ab = { | |
226 | + | let $l = [0, 1, 2] | |
227 | + | let $s = size($l) | |
228 | + | let $acc0 = nil | |
229 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
230 | + | then $a | |
231 | + | else xs($a, $l[$i]) | |
232 | + | ||
233 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
234 | + | then $a | |
235 | + | else throw("List size exceeds 3") | |
236 | + | ||
237 | + | $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3) | |
238 | + | } | |
239 | + | func S_c (a,b) = { | |
240 | + | let S_ = (a + b) | |
241 | + | let ca = fraction(D, D, (a * N_COINS)) | |
242 | + | let cb = fraction(ca, D, (b * N_COINS)) | |
243 | + | $Tuple2(S_, cb) | |
244 | + | } | |
245 | + | ||
246 | + | let $t058285864 = S_c(ab[0], ab[1]) | |
247 | + | let S_ = $t058285864._1 | |
248 | + | let c_ = $t058285864._2 | |
249 | + | let c = fraction(toBigInt(c_), toBigInt(D), toBigInt((Ann * N_COINS))) | |
250 | + | let bD = toBigInt(((S_ + (D / Ann)) - D)) | |
251 | + | func y_proc (acc,_i) = if ((acc._2 == true)) | |
252 | + | then acc | |
253 | + | else { | |
254 | + | let y_prev = acc._1 | |
255 | + | let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD)) | |
256 | + | if ((y > y_prev)) | |
257 | + | then if ((1 >= toInt((y - y_prev)))) | |
258 | + | then $Tuple2(y, true) | |
259 | + | else $Tuple2(y, false) | |
260 | + | else if ((1 >= toInt((y_prev - y)))) | |
261 | + | then $Tuple2(y, true) | |
262 | + | else $Tuple2(y, false) | |
263 | + | } | |
264 | + | ||
265 | + | let $t063856508 = { | |
266 | + | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
267 | + | let $s = size($l) | |
268 | + | let $acc0 = $Tuple2(toBigInt(D), false) | |
269 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
270 | + | then $a | |
271 | + | else y_proc($a, $l[$i]) | |
272 | + | ||
273 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
274 | + | then $a | |
275 | + | else throw("List size exceeds 16") | |
276 | + | ||
277 | + | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
278 | + | } | |
279 | + | let y = $t063856508._1 | |
280 | + | let finished = $t063856508._2 | |
281 | + | if ((finished == false)) | |
282 | + | then throw(("get_y() not finished with " + toString(y))) | |
283 | + | else $Tuple2(toInt(y), D) | |
284 | + | } | |
285 | + | ||
286 | + | ||
287 | + | func get_y_D (A_,i,xp,D) = if (assert((i >= 0))) | |
288 | + | then throw("i below zero") | |
289 | + | else if (assert((N_COINS > i))) | |
290 | + | then throw("i above N_COINS") | |
291 | + | else { | |
292 | + | let Ann = (A_ * N_COINS) | |
293 | + | func S_c (a,b) = { | |
294 | + | let S_ = (a + b) | |
295 | + | let ca = fraction(D, D, (a * N_COINS)) | |
296 | + | let cb = fraction(ca, D, (b * N_COINS)) | |
297 | + | $Tuple2(S_, cb) | |
298 | + | } | |
299 | + | ||
300 | + | let $t070497262 = if ((i == 0)) | |
301 | + | then S_c(xp._2, xp._3) | |
302 | + | else if ((i == 1)) | |
303 | + | then S_c(xp._1, xp._3) | |
304 | + | else if ((i == 2)) | |
305 | + | then S_c(xp._1, xp._2) | |
306 | + | else throw("index out of N_COINS") | |
307 | + | let S_ = $t070497262._1 | |
308 | + | let c_ = $t070497262._2 | |
309 | + | let c = fraction(toBigInt(c_), toBigInt(D), toBigInt((Ann * N_COINS))) | |
310 | + | let bD = toBigInt(((S_ + (D / Ann)) - D)) | |
311 | + | func y_D_proc (acc,_i) = if ((acc._2 == true)) | |
312 | + | then acc | |
313 | + | else { | |
314 | + | let y_prev = acc._1 | |
315 | + | let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD)) | |
316 | + | if ((y > y_prev)) | |
317 | + | then if ((1 >= toInt((y - y_prev)))) | |
318 | + | then $Tuple2(y, true) | |
319 | + | else $Tuple2(y, false) | |
320 | + | else if ((1 >= toInt((y_prev - y)))) | |
321 | + | then $Tuple2(y, true) | |
322 | + | else $Tuple2(y, false) | |
323 | + | } | |
324 | + | ||
325 | + | let $t077867911 = { | |
326 | + | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
327 | + | let $s = size($l) | |
328 | + | let $acc0 = $Tuple2(toBigInt(D), false) | |
329 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
330 | + | then $a | |
331 | + | else y_D_proc($a, $l[$i]) | |
332 | + | ||
333 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
334 | + | then $a | |
335 | + | else throw("List size exceeds 16") | |
336 | + | ||
337 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
338 | + | } | |
339 | + | let y = $t077867911._1 | |
340 | + | let finished = $t077867911._2 | |
341 | + | if ((finished == false)) | |
342 | + | then throw(("get_y_D() not finished with " + toString(y))) | |
343 | + | else toInt(y) | |
344 | + | } | |
345 | + | ||
346 | + | ||
347 | + | func _calc_withdraw_one_coin (_token_amount,i) = { | |
348 | + | let amp = _A() | |
349 | + | let _fee = ((fee * N_COINS) / (4 * (N_COINS - 1))) | |
350 | + | let total_supply = token_quantity | |
351 | + | let xp = _xp() | |
352 | + | let D0 = get_D(xp, amp) | |
353 | + | let D1 = (D0 - fraction(_token_amount, D0, total_supply)) | |
354 | + | let new_y = get_y_D(amp, i, xp, D1) | |
355 | + | let dy_0 = (x_i(xp, i) - new_y) | |
356 | + | func xp_reduced_proc (ji,xp_j) = { | |
357 | + | let dx_expected = if (ji) | |
358 | + | then (fraction(xp_j, D1, D0) - new_y) | |
359 | + | else (xp_j - fraction(xp_j, D1, D0)) | |
360 | + | (xp_j - fraction(_fee, dx_expected, FEE_DENOMINATOR)) | |
361 | + | } | |
362 | + | ||
363 | + | let xp_reduced = $Tuple3(xp_reduced_proc((i == 0), xp._1), xp_reduced_proc((i == 1), xp._2), xp_reduced_proc((i == 2), xp._3)) | |
364 | + | let xp_reduced_i = x_i(xp_reduced, i) | |
365 | + | let dy = ((xp_reduced_i - get_y_D(amp, i, xp_reduced, D1)) - 1) | |
366 | + | $Tuple3(dy, (dy_0 - dy), D0) | |
367 | + | } | |
368 | + | ||
369 | + | ||
370 | + | func virtual_price (D) = fraction(D, VP_PRECISION, token_quantity) | |
371 | + | ||
372 | + | ||
373 | + | func log_data (D,add) = { | |
374 | + | let total_vol = (parseBigIntValue(valueOrElse(getString("vol"), "0")) + toBigInt(add)) | |
375 | + | let total_vol_string = toString(total_vol) | |
376 | + | ([StringEntry("vol", total_vol_string)] ++ { | |
377 | + | let log_period = toString((lastBlock.timestamp / VP_LOG_PERIOD)) | |
378 | + | let log_key = ("log_" + log_period) | |
379 | + | if (isDefined(getString(log_key))) | |
380 | + | then nil | |
381 | + | else [StringEntry(log_key, ((((toString(virtual_price(D)) + "_") + total_vol_string) + "_") + toString(lastBlock.timestamp)))] | |
382 | + | }) | |
383 | + | } | |
384 | + | ||
385 | + | ||
386 | + | func get_nearest_log (period) = { | |
387 | + | func fold (log_value,step) = if ((log_value != "")) | |
388 | + | then log_value | |
389 | + | else { | |
390 | + | let log_key = ("log_" + toString((period - step))) | |
391 | + | valueOrElse(getString(log_key), "") | |
392 | + | } | |
393 | + | ||
394 | + | let list30p = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] | |
395 | + | let list30m = [-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16, -17, -18, -19, -20, -21, -22, -23, -24, -25, -26, -27, -28, -29, -30] | |
396 | + | let value30p = { | |
397 | + | let $l = list30p | |
398 | + | let $s = size($l) | |
399 | + | let $acc0 = "" | |
400 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
401 | + | then $a | |
402 | + | else fold($a, $l[$i]) | |
403 | + | ||
404 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
405 | + | then $a | |
406 | + | else throw("List size exceeds 30") | |
407 | + | ||
408 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30) | |
409 | + | } | |
410 | + | if ((value30p != "")) | |
411 | + | then value30p | |
412 | + | else { | |
413 | + | let $l = list30m | |
414 | + | let $s = size($l) | |
415 | + | let $acc0 = "" | |
416 | + | func $f1_1 ($a,$i) = if (($i >= $s)) | |
417 | + | then $a | |
418 | + | else fold($a, $l[$i]) | |
419 | + | ||
420 | + | func $f1_2 ($a,$i) = if (($i >= $s)) | |
421 | + | then $a | |
422 | + | else throw("List size exceeds 30") | |
423 | + | ||
424 | + | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30) | |
425 | + | } | |
426 | + | } | |
427 | + | ||
428 | + | ||
429 | + | func get_virtual_price_diff (_t0) = { | |
430 | + | let vp1 = virtual_price(get_D(_xp(), _A())) | |
431 | + | let vp1_timestamp = lastBlock.timestamp | |
432 | + | let t0 = if ((0 >= _t0)) | |
433 | + | then (vp1_timestamp + _t0) | |
434 | + | else _t0 | |
435 | + | let t0_period = (t0 / VP_LOG_PERIOD) | |
436 | + | let log_value = get_nearest_log(t0_period) | |
437 | + | if ((log_value == "")) | |
438 | + | then $Tuple3(vp1, vp1, 0) | |
439 | + | else { | |
440 | + | let log_list = split(log_value, "_") | |
441 | + | let vp0 = parseIntValue(log_list[0]) | |
442 | + | let vp0_timestamp = parseIntValue(log_list[2]) | |
443 | + | $Tuple3(vp1, vp0, (vp1_timestamp - vp0_timestamp)) | |
444 | + | } | |
445 | + | } | |
446 | + | ||
447 | + | ||
448 | + | func get_volume_diff (_t0) = { | |
449 | + | let vol1 = parseBigIntValue(valueOrElse(getString("vol"), "0")) | |
450 | + | let vol1_timestamp = lastBlock.timestamp | |
451 | + | let t0 = if ((0 >= _t0)) | |
452 | + | then (vol1_timestamp + _t0) | |
453 | + | else _t0 | |
454 | + | let t0_period = (t0 / VP_LOG_PERIOD) | |
455 | + | let log_value = get_nearest_log(t0_period) | |
456 | + | if ((log_value == "")) | |
457 | + | then $Tuple3(vol1, vol1, 0) | |
458 | + | else { | |
459 | + | let log_list = split(log_value, "_") | |
460 | + | let vol0 = parseBigIntValue(log_list[1]) | |
461 | + | let vol0_timestamp = parseIntValue(log_list[2]) | |
462 | + | $Tuple3(vol1, vol0, (vol1_timestamp - vol0_timestamp)) | |
463 | + | } | |
464 | + | } | |
465 | + | ||
466 | + | ||
467 | + | @Callable(msg) | |
468 | + | func D (xp0,xp1,xp2,amp) = { | |
469 | + | let D = get_D_internal(toBigInt(xp0), toBigInt(xp1), toBigInt(xp2), amp) | |
470 | + | $Tuple2([IntegerEntry("D", D)], D) | |
471 | + | } | |
472 | + | ||
473 | + | ||
474 | + | ||
475 | + | @Callable(msg) | |
476 | + | func init (_owner,_config,_coins,_pool_token,_A,_fee,_admin_fee) = if (!(isDataStorageUntouched(this))) | |
477 | + | then throw("Already initialized") | |
478 | + | else if ((msg.caller != this)) | |
479 | + | then throw("Self initialization only") | |
480 | + | else { | |
481 | + | func checkCoin (coin58) = { | |
482 | + | let coin = valueOrErrorMessage(fromBase58String(coin58), ("fromBase58String: " + coin58)) | |
483 | + | let decimals = valueOrErrorMessage(assetInfo(coin), ("assetInfo: " + coin58)).decimals | |
484 | + | if ((decimals != DECIMALS)) | |
485 | + | then throw("wrong decimals") | |
486 | + | else coin | |
487 | + | } | |
488 | + | ||
489 | + | let coins = split(_coins, ",") | |
490 | + | if ((size(coins) != N_COINS)) | |
491 | + | then throw(("size( coins ) != " + toString(N_COINS))) | |
492 | + | else { | |
493 | + | let issueToken = Issue(_pool_token, ("LP token for " + _coins), 0, DECIMALS, true) | |
494 | + | let tokenId = toBase58String(calculateAssetId(issueToken)) | |
495 | + | [StringEntry("coins_0", toBase58String(checkCoin(coins[0]))), StringEntry("coins_1", toBase58String(checkCoin(coins[1]))), StringEntry("coins_2", toBase58String(checkCoin(coins[2]))), IntegerEntry("initial_A", _A), IntegerEntry("future_A", _A), IntegerEntry("fee", _fee), IntegerEntry("admin_fee", _admin_fee), StringEntry("owner", checkAddress(_owner)), StringEntry("config", checkAddress(_config)), IntegerEntry("kill_deadline", (height + KILL_DEADLINE_DT)), StringEntry("token", tokenId), BooleanEntry("is_killed", false), BooleanEntry("is_auto_fees", true), issueToken] | |
496 | + | } | |
497 | + | } | |
498 | + | ||
499 | + | ||
500 | + | ||
501 | + | @Callable(msg) | |
502 | + | func add_liquidity (min_mint_amount) = if (assert(!(is_killed))) | |
503 | + | then throw("is killed") | |
504 | + | else { | |
505 | + | let _fee = ((fee * N_COINS) / (4 * (N_COINS - 1))) | |
506 | + | let amp = _A() | |
507 | + | let token_supply = token_quantity | |
508 | + | let D0 = if ((token_supply == 0)) | |
509 | + | then 0 | |
510 | + | else get_D_mem(balances_0, balances_1, balances_2, amp) | |
511 | + | let payments = msg.payments | |
512 | + | let n = size(payments) | |
513 | + | func assetValid (coin) = if (if ((coin == coins_0)) | |
514 | + | then true | |
515 | + | else (coin == coins_1)) | |
516 | + | then true | |
517 | + | else (coin == coins_2) | |
518 | + | ||
519 | + | func validPayments (payments,n) = if ((n > 3)) | |
520 | + | then throw("payments size > 3") | |
521 | + | else if ((1 > n)) | |
522 | + | then throw("payments size < 1") | |
523 | + | else if (!(assetValid(payments[0].assetId))) | |
524 | + | then throw("unknown payment 1 token") | |
525 | + | else if (if ((n > 1)) | |
526 | + | then !(assetValid(payments[1].assetId)) | |
527 | + | else false) | |
528 | + | then throw("unknown payment 2 token") | |
529 | + | else if (if ((n > 2)) | |
530 | + | then !(assetValid(payments[2].assetId)) | |
531 | + | else false) | |
532 | + | then throw("unknown payment 3 token") | |
533 | + | else true | |
534 | + | ||
535 | + | func paymentAmount (coin,payments,n) = (((if ((payments[0].assetId == coin)) | |
536 | + | then payments[0].amount | |
537 | + | else 0) + (if (if ((n > 1)) | |
538 | + | then (payments[1].assetId == coin) | |
539 | + | else false) | |
540 | + | then payments[1].amount | |
541 | + | else 0)) + (if (if ((n > 2)) | |
542 | + | then (payments[2].assetId == coin) | |
543 | + | else false) | |
544 | + | then payments[2].amount | |
545 | + | else 0)) | |
546 | + | ||
547 | + | if (!(validPayments(payments, n))) | |
548 | + | then throw() | |
549 | + | else { | |
550 | + | let amounts_0 = paymentAmount(coins_0, payments, n) | |
551 | + | let amounts_1 = paymentAmount(coins_1, payments, n) | |
552 | + | let amounts_2 = paymentAmount(coins_2, payments, n) | |
553 | + | if (if ((token_supply == 0)) | |
554 | + | then if (if ((amounts_0 == 0)) | |
555 | + | then true | |
556 | + | else (amounts_1 == 0)) | |
557 | + | then true | |
558 | + | else (amounts_2 == 0) | |
559 | + | else false) | |
560 | + | then throw("initial deposit requires all coins") | |
561 | + | else { | |
562 | + | let new_balances_0 = (balances_0 + amounts_0) | |
563 | + | let new_balances_1 = (balances_1 + amounts_1) | |
564 | + | let new_balances_2 = (balances_2 + amounts_2) | |
565 | + | let D1 = get_D_mem(new_balances_0, new_balances_1, new_balances_2, amp) | |
566 | + | if (assert((D1 > D0))) | |
567 | + | then throw("D1 > D0") | |
568 | + | else { | |
569 | + | let $t01540917448 = if ((token_supply > 0)) | |
570 | + | then { | |
571 | + | func feesProc (old_balance,new_balance) = { | |
572 | + | let ideal_balance = fraction(D1, old_balance, D0) | |
573 | + | let difference = if ((ideal_balance > new_balance)) | |
574 | + | then (ideal_balance - new_balance) | |
575 | + | else (new_balance - ideal_balance) | |
576 | + | fraction(_fee, difference, FEE_DENOMINATOR) | |
577 | + | } | |
578 | + | ||
579 | + | let fees_0 = feesProc(balances_0, new_balances_0) | |
580 | + | let fees_1 = feesProc(balances_1, new_balances_1) | |
581 | + | let fees_2 = feesProc(balances_2, new_balances_2) | |
582 | + | let admin_fees_0 = fraction(fees_0, admin_fee, FEE_DENOMINATOR) | |
583 | + | let admin_fees_1 = fraction(fees_1, admin_fee, FEE_DENOMINATOR) | |
584 | + | let admin_fees_2 = fraction(fees_2, admin_fee, FEE_DENOMINATOR) | |
585 | + | $Tuple5((new_balances_0 - admin_fees_0), (new_balances_1 - admin_fees_1), (new_balances_2 - admin_fees_2), get_D_mem((new_balances_0 - fees_0), (new_balances_1 - fees_1), (new_balances_2 - fees_2), amp), ((((nil ++ (if (if (is_auto_fees) | |
586 | + | then (admin_fees_0 > 0) | |
587 | + | else false) | |
588 | + | then [ScriptTransfer(owner, admin_fees_0, coins_0)] | |
589 | + | else nil)) ++ (if (if (is_auto_fees) | |
590 | + | then (admin_fees_1 > 0) | |
591 | + | else false) | |
592 | + | then [ScriptTransfer(owner, admin_fees_1, coins_1)] | |
593 | + | else nil)) ++ (if (if (is_auto_fees) | |
594 | + | then (admin_fees_2 > 0) | |
595 | + | else false) | |
596 | + | then [ScriptTransfer(owner, admin_fees_2, coins_2)] | |
597 | + | else nil)) ++ log_data(D0, fraction(((fees_0 + fees_1) + fees_2), FEE_DENOMINATOR, fee)))) | |
598 | + | } | |
599 | + | else $Tuple5(new_balances_0, new_balances_1, new_balances_2, D1, nil) | |
600 | + | let final_balances_0 = $t01540917448._1 | |
601 | + | let final_balances_1 = $t01540917448._2 | |
602 | + | let final_balances_2 = $t01540917448._3 | |
603 | + | let D2 = $t01540917448._4 | |
604 | + | let fees_actions = $t01540917448._5 | |
605 | + | let mint_amount = if ((token_supply == 0)) | |
606 | + | then D1 | |
607 | + | else fraction(token_supply, (D2 - D0), D0) | |
608 | + | if (assert((mint_amount >= min_mint_amount))) | |
609 | + | then throw("Slippage screwed you") | |
610 | + | else ([IntegerEntry("balances_0", final_balances_0), IntegerEntry("balances_1", final_balances_1), IntegerEntry("balances_2", final_balances_2), Reissue(token, mint_amount, true), ScriptTransfer(msg.caller, mint_amount, token)] ++ fees_actions) | |
611 | + | } | |
612 | + | } | |
613 | + | } | |
614 | + | } | |
615 | + | ||
616 | + | ||
617 | + | ||
618 | + | @Callable(msg) | |
619 | + | func get_dy (i,j,dx) = { | |
620 | + | let xp = _xp() | |
621 | + | let xp_i = x_i(xp, i) | |
622 | + | let xp_j = x_i(xp, j) | |
623 | + | let x = (xp_i + dx) | |
624 | + | let $t01814818183 = get_y(i, j, x, xp) | |
625 | + | let y = $t01814818183._1 | |
626 | + | let D = $t01814818183._2 | |
627 | + | let dy = ((xp_j - y) - 1) | |
628 | + | let _fee = fraction(fee, dy, FEE_DENOMINATOR) | |
629 | + | $Tuple2(nil, (dy - _fee)) | |
630 | + | } | |
631 | + | ||
632 | + | ||
633 | + | ||
634 | + | @Callable(msg) | |
635 | + | func exchange (j,min_dy) = if (assert(!(is_killed))) | |
636 | + | then throw("is killed") | |
637 | + | else if ((size(msg.payments) != 1)) | |
638 | + | then throw("size( payments ) != 1") | |
639 | + | else { | |
640 | + | let payment = msg.payments[0] | |
641 | + | let tokenIn = payment.assetId | |
642 | + | let dx = payment.amount | |
643 | + | let i = if ((tokenIn == coins_0)) | |
644 | + | then 0 | |
645 | + | else if ((tokenIn == coins_1)) | |
646 | + | then 1 | |
647 | + | else if ((tokenIn == coins_2)) | |
648 | + | then 2 | |
649 | + | else throw("unknown token in") | |
650 | + | let tokenOut = if ((j == 0)) | |
651 | + | then coins_0 | |
652 | + | else if ((j == 1)) | |
653 | + | then coins_1 | |
654 | + | else if ((j == 2)) | |
655 | + | then coins_2 | |
656 | + | else throw("unknown token out") | |
657 | + | let xp = _xp_mem(balances) | |
658 | + | let xp_i = x_i(xp, i) | |
659 | + | let xp_j = x_i(xp, j) | |
660 | + | let x = (xp_i + dx) | |
661 | + | let $t01905819093 = get_y(i, j, x, xp) | |
662 | + | let y = $t01905819093._1 | |
663 | + | let D = $t01905819093._2 | |
664 | + | let _dy = ((xp_j - y) - 1) | |
665 | + | let dy_fee = fraction(_dy, fee, FEE_DENOMINATOR) | |
666 | + | let dy = (_dy - dy_fee) | |
667 | + | if (assert((dy >= min_dy))) | |
668 | + | then throw("Exchange resulted in fewer coins than expected") | |
669 | + | else { | |
670 | + | let dy_admin_fee = fraction(dy_fee, admin_fee, FEE_DENOMINATOR) | |
671 | + | func balanceProc (old_balance,_i) = if ((_i == i)) | |
672 | + | then (old_balance + dx) | |
673 | + | else if ((_i == j)) | |
674 | + | then ((old_balance - dy) - dy_admin_fee) | |
675 | + | else old_balance | |
676 | + | ||
677 | + | let final_balances_0 = balanceProc(balances_0, 0) | |
678 | + | let final_balances_1 = balanceProc(balances_1, 1) | |
679 | + | let final_balances_2 = balanceProc(balances_2, 2) | |
680 | + | $Tuple2((([IntegerEntry("balances_0", final_balances_0), IntegerEntry("balances_1", final_balances_1), IntegerEntry("balances_2", final_balances_2), ScriptTransfer(msg.caller, dy, tokenOut)] ++ (if (if (is_auto_fees) | |
681 | + | then (dy_admin_fee > 0) | |
682 | + | else false) | |
683 | + | then [ScriptTransfer(owner, dy_admin_fee, tokenOut)] | |
684 | + | else nil)) ++ log_data(D, dx)), dy) | |
685 | + | } | |
686 | + | } | |
687 | + | ||
688 | + | ||
689 | + | ||
690 | + | @Callable(msg) | |
691 | + | func remove_liquidity (min_amounts_0,min_amounts_1,min_amounts_2) = if ((size(msg.payments) != 1)) | |
692 | + | then throw("size( payments ) != 1") | |
693 | + | else { | |
694 | + | let payment = msg.payments[0] | |
695 | + | let tokenIn = payment.assetId | |
696 | + | if ((tokenIn != token)) | |
697 | + | then throw("unknown token") | |
698 | + | else { | |
699 | + | let _amount = payment.amount | |
700 | + | let total_supply = token_quantity | |
701 | + | let value_0 = fraction(balances_0, _amount, total_supply) | |
702 | + | let value_1 = fraction(balances_1, _amount, total_supply) | |
703 | + | let value_2 = fraction(balances_2, _amount, total_supply) | |
704 | + | if (assert(if (if ((value_0 >= min_amounts_0)) | |
705 | + | then (value_1 >= min_amounts_1) | |
706 | + | else false) | |
707 | + | then (value_2 >= min_amounts_2) | |
708 | + | else false)) | |
709 | + | then throw("Withdrawal resulted in fewer coins than expected") | |
710 | + | else { | |
711 | + | let final_balances_0 = (balances_0 - value_0) | |
712 | + | let final_balances_1 = (balances_1 - value_1) | |
713 | + | let final_balances_2 = (balances_2 - value_2) | |
714 | + | [IntegerEntry("balances_0", final_balances_0), IntegerEntry("balances_1", final_balances_1), IntegerEntry("balances_2", final_balances_2), ScriptTransfer(msg.caller, value_0, coins_0), ScriptTransfer(msg.caller, value_1, coins_1), ScriptTransfer(msg.caller, value_2, coins_2), Burn(token, _amount)] | |
715 | + | } | |
716 | + | } | |
717 | + | } | |
718 | + | ||
719 | + | ||
720 | + | ||
721 | + | @Callable(msg) | |
722 | + | func calc_withdraw_one_coin (_token_amount,i) = $Tuple2(nil, _calc_withdraw_one_coin(_token_amount, i)._1) | |
723 | + | ||
724 | + | ||
725 | + | ||
726 | + | @Callable(msg) | |
727 | + | func remove_liquidity_one_coin (i,min_amount) = if (assert(!(is_killed))) | |
728 | + | then throw("is killed") | |
729 | + | else if ((size(msg.payments) != 1)) | |
730 | + | then throw("size( payments ) != 1") | |
731 | + | else { | |
732 | + | let payment = msg.payments[0] | |
733 | + | let tokenIn = payment.assetId | |
734 | + | if ((tokenIn != token)) | |
735 | + | then throw("unknown token") | |
736 | + | else { | |
737 | + | let _token_amount = payment.amount | |
738 | + | let $t02205122118 = _calc_withdraw_one_coin(_token_amount, i) | |
739 | + | let dy = $t02205122118._1 | |
740 | + | let dy_fee = $t02205122118._2 | |
741 | + | let D = $t02205122118._3 | |
742 | + | if (assert((dy >= min_amount))) | |
743 | + | then throw("Not enough coins removed") | |
744 | + | else { | |
745 | + | let dy_admin_fee = fraction(dy_fee, admin_fee, FEE_DENOMINATOR) | |
746 | + | let dy_and_fee = (dy + dy_admin_fee) | |
747 | + | let $t02231722824 = if ((i == 0)) | |
748 | + | then $Tuple2([IntegerEntry("balances_0", (balances_0 - dy_and_fee)), ScriptTransfer(msg.caller, dy, coins_0)], coins_0) | |
749 | + | else if ((i == 1)) | |
750 | + | then $Tuple2([IntegerEntry("balances_1", (balances_1 - dy_and_fee)), ScriptTransfer(msg.caller, dy, coins_1)], coins_1) | |
751 | + | else if ((i == 2)) | |
752 | + | then $Tuple2([IntegerEntry("balances_2", (balances_2 - dy_and_fee)), ScriptTransfer(msg.caller, dy, coins_2)], coins_2) | |
753 | + | else throw("index out of N_COINS") | |
754 | + | let base_actions = $t02231722824._1 | |
755 | + | let tokenOut = $t02231722824._2 | |
756 | + | (((base_actions ++ [Burn(token, _token_amount)]) ++ (if (if (is_auto_fees) | |
757 | + | then (dy_admin_fee > 0) | |
758 | + | else false) | |
759 | + | then [ScriptTransfer(owner, dy_admin_fee, tokenOut)] | |
760 | + | else nil)) ++ log_data(D, fraction(dy_fee, FEE_DENOMINATOR, fee))) | |
761 | + | } | |
762 | + | } | |
763 | + | } | |
764 | + | ||
765 | + | ||
766 | + | ||
767 | + | @Callable(msg) | |
768 | + | func A () = $Tuple2(nil, _A()) | |
769 | + | ||
770 | + | ||
771 | + | ||
772 | + | @Callable(msg) | |
773 | + | func get_virtual_price () = { | |
774 | + | let D = get_D(_xp(), _A()) | |
775 | + | $Tuple2(nil, virtual_price(D)) | |
776 | + | } | |
777 | + | ||
778 | + | ||
779 | + | ||
780 | + | @Callable(msg) | |
781 | + | func calc_token_amount (amounts_0,amounts_1,amounts_2,deposit) = { | |
782 | + | let amp = _A() | |
783 | + | let D0 = get_D_mem(balances_0, balances_1, balances_2, amp) | |
784 | + | let new_balances_0 = (balances_0 + (if (deposit) | |
785 | + | then amounts_0 | |
786 | + | else -(amounts_0))) | |
787 | + | let new_balances_1 = (balances_1 + (if (deposit) | |
788 | + | then amounts_1 | |
789 | + | else -(amounts_1))) | |
790 | + | let new_balances_2 = (balances_2 + (if (deposit) | |
791 | + | then amounts_2 | |
792 | + | else -(amounts_2))) | |
793 | + | let D1 = get_D_mem(new_balances_0, new_balances_1, new_balances_2, amp) | |
794 | + | let token_amount = token_quantity | |
795 | + | let diff = if (deposit) | |
796 | + | then (D1 - D0) | |
797 | + | else (D0 - D1) | |
798 | + | $Tuple2(nil, fraction(diff, token_amount, D0)) | |
799 | + | } | |
800 | + | ||
801 | + | ||
802 | + | ||
803 | + | @Callable(msg) | |
804 | + | func ramp_A (_future_A,_future_time) = if (assert((msg.caller == owner))) | |
805 | + | then throw("only owner") | |
806 | + | else if (assert((block_timestamp >= (initial_A_time + MIN_RAMP_TIME)))) | |
807 | + | then throw("too often") | |
808 | + | else if (assert((_future_time >= (block_timestamp + MIN_RAMP_TIME)))) | |
809 | + | then throw("insufficient time") | |
810 | + | else { | |
811 | + | let _initial_A = _A() | |
812 | + | if (assert(if ((_future_A > 0)) | |
813 | + | then (MAX_A > _future_A) | |
814 | + | else false)) | |
815 | + | then throw("out of base range") | |
816 | + | else if (assert(if (if ((_future_A >= _initial_A)) | |
817 | + | then ((_initial_A * MAX_A_CHANGE) >= _future_A) | |
818 | + | else false) | |
819 | + | then true | |
820 | + | else if ((_initial_A > _future_A)) | |
821 | + | then ((_future_A * MAX_A_CHANGE) >= _initial_A) | |
822 | + | else false)) | |
823 | + | then throw("out of range") | |
824 | + | else [IntegerEntry("initial_A", _initial_A), IntegerEntry("future_A", _future_A), IntegerEntry("initial_A_time", block_timestamp), IntegerEntry("future_A_time", _future_time)] | |
825 | + | } | |
826 | + | ||
827 | + | ||
828 | + | ||
829 | + | @Callable(msg) | |
830 | + | func stop_ramp_A () = if (assert((msg.caller == owner))) | |
831 | + | then throw("only owner") | |
832 | + | else { | |
833 | + | let current_A = _A() | |
834 | + | [IntegerEntry("initial_A", current_A), IntegerEntry("future_A", current_A), IntegerEntry("initial_A_time", block_timestamp), IntegerEntry("future_A_time", block_timestamp)] | |
835 | + | } | |
836 | + | ||
837 | + | ||
838 | + | ||
839 | + | @Callable(msg) | |
840 | + | func commit_new_fee (new_fee,new_admin_fee) = if (assert((msg.caller == owner))) | |
841 | + | then throw("only owner") | |
842 | + | else if (assert((admin_actions_deadline == 0))) | |
843 | + | then throw("active action") | |
844 | + | else if (assert((MAX_FEE >= new_fee))) | |
845 | + | then throw("fee exceeds maximum") | |
846 | + | else if (assert((MAX_ADMIN_FEE >= new_admin_fee))) | |
847 | + | then throw("admin fee exceeds maximum") | |
848 | + | else { | |
849 | + | let _deadline = (block_timestamp + ADMIN_ACTIONS_DELAY) | |
850 | + | [IntegerEntry("admin_actions_deadline", _deadline), IntegerEntry("future_fee", new_fee), IntegerEntry("future_admin_fee", new_admin_fee)] | |
851 | + | } | |
852 | + | ||
853 | + | ||
854 | + | ||
855 | + | @Callable(msg) | |
856 | + | func apply_new_fee () = if (assert((msg.caller == owner))) | |
857 | + | then throw("only owner") | |
858 | + | else if (assert((block_timestamp >= admin_actions_deadline))) | |
859 | + | then throw("insufficient time") | |
860 | + | else if (assert((admin_actions_deadline != 0))) | |
861 | + | then throw("no active action") | |
862 | + | else [IntegerEntry("admin_actions_deadline", 0), IntegerEntry("fee", future_fee), IntegerEntry("admin_fee", future_admin_fee)] | |
863 | + | ||
864 | + | ||
865 | + | ||
866 | + | @Callable(msg) | |
867 | + | func revert_new_parameters () = if (assert((msg.caller == owner))) | |
868 | + | then throw("only owner") | |
869 | + | else [IntegerEntry("admin_actions_deadline", 0)] | |
870 | + | ||
871 | + | ||
872 | + | ||
873 | + | @Callable(msg) | |
874 | + | func commit_transfer_ownership (_owner) = if (assert((msg.caller == owner))) | |
875 | + | then throw("only owner") | |
876 | + | else if (assert((transfer_ownership_deadline == 0))) | |
877 | + | then throw("active transfer") | |
878 | + | else { | |
879 | + | let _deadline = (block_timestamp + ADMIN_ACTIONS_DELAY) | |
880 | + | [IntegerEntry("transfer_ownership_deadline", _deadline), StringEntry("future_owner", checkAddress(_owner))] | |
881 | + | } | |
882 | + | ||
883 | + | ||
884 | + | ||
885 | + | @Callable(msg) | |
886 | + | func apply_transfer_ownership () = if (assert((msg.caller == owner))) | |
887 | + | then throw("only owner") | |
888 | + | else if (assert((block_timestamp >= transfer_ownership_deadline))) | |
889 | + | then throw("insufficient time") | |
890 | + | else if (assert((transfer_ownership_deadline != 0))) | |
891 | + | then throw("no active transfer") | |
892 | + | else [IntegerEntry("transfer_ownership_deadline", 0), StringEntry("owner", future_owner)] | |
893 | + | ||
894 | + | ||
895 | + | ||
896 | + | @Callable(msg) | |
897 | + | func revert_transfer_ownership () = if (assert((msg.caller == owner))) | |
898 | + | then throw("only owner") | |
899 | + | else [IntegerEntry("transfer_ownership_deadline", 0)] | |
900 | + | ||
901 | + | ||
902 | + | ||
903 | + | @Callable(msg) | |
904 | + | func admin_balances (i) = $Tuple2(nil, admin_balance(i)) | |
905 | + | ||
906 | + | ||
907 | + | ||
908 | + | @Callable(msg) | |
909 | + | func withdraw_admin_fees () = if (assert((msg.caller == owner))) | |
910 | + | then throw("only owner") | |
911 | + | else [ScriptTransfer(owner, admin_balance(0), coins_0), ScriptTransfer(owner, admin_balance(1), coins_1), ScriptTransfer(owner, admin_balance(2), coins_2)] | |
912 | + | ||
913 | + | ||
914 | + | ||
915 | + | @Callable(msg) | |
916 | + | func donate_admin_fees () = if (assert((msg.caller == owner))) | |
917 | + | then throw("only owner") | |
918 | + | else [IntegerEntry("balances_0", (admin_balance(0) + balances_0)), IntegerEntry("balances_1", (admin_balance(1) + balances_1)), IntegerEntry("balances_2", (admin_balance(2) + balances_2))] | |
919 | + | ||
920 | + | ||
921 | + | ||
922 | + | @Callable(msg) | |
923 | + | func set_auto_fees (_is_auto_fees) = if (assert((msg.caller == owner))) | |
924 | + | then throw("only owner") | |
925 | + | else [BooleanEntry("is_auto_fees", _is_auto_fees)] | |
926 | + | ||
927 | + | ||
928 | + | ||
929 | + | @Callable(msg) | |
930 | + | func kill_me () = if (assert((msg.caller == owner))) | |
931 | + | then throw("only owner") | |
932 | + | else if (assert((kill_deadline > block_timestamp))) | |
933 | + | then throw("deadline has passed") | |
934 | + | else [BooleanEntry("is_killed", true)] | |
935 | + | ||
936 | + | ||
937 | + | ||
938 | + | @Callable(msg) | |
939 | + | func unkill_me () = if (assert((msg.caller == owner))) | |
940 | + | then throw("only owner") | |
941 | + | else [BooleanEntry("is_killed", false)] | |
942 | + | ||
943 | + |
github/deemru/w8io/169f3d6 98.19 ms ◑