tx · 3jdZPkj6Q1bRVQmNbReEL2BDz8LPyxf46vHyJF6pP4MX

3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t:  -0.05000000 Waves

2021.02.01 19:28 [1379351] smart account 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t > SELF 0.00000000 Waves

{ "type": 13, "id": "3jdZPkj6Q1bRVQmNbReEL2BDz8LPyxf46vHyJF6pP4MX", "fee": 5000000, "feeAssetId": null, "timestamp": 1612196976037, "version": 2, "chainId": 84, "sender": "3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t", "senderPublicKey": "Bo16mjUNTGCeZDYvQc6gHh46P21B3DqYCHoDt9CyzxHf", "proofs": [ "46PpfcxbHeyYvrFtMyL83A9czEKcikvXuYauP7vYaaCXjrf6zb1813fe6YCgY6kpAT1rhmF8jfrdC3p5VpAbdPUv" ], "script": "base64:AAIEAAAAAAAAABgIAhIAEgMKAQESAwoBARIDCgEBEgMKAQEAAAAOAAAAAAFlAAAAAAAQM8TWAAAAAA5rd290YXJvd25vd2FnaQAAAAkYTnKgAAAAAAAEYmF6YQkAAGgAAAACBQAAAA5rd290YXJvd25vd2FnaQAAAAAAAAAAEgAAAAAHZW5hYmxlZAkABBoAAAACBQAAAAR0aGlzAgAAAAdlbmFibGVkAAAAAAZwb3ppb20JAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAABlBvemlvbQAAAAAKYmFsYW5zVVNETgkAAGgAAAACCQAD8AAAAAIFAAAABHRoaXMBAAAAILcwEVDzAH5/KJhWA+xRAa417KPR+5S8mya0Jgcjq6dKAAAAAAAAAABkAAAAAApiYWxhbnNVU0RUCQAAaAAAAAIJAAPwAAAAAgUAAAAEdGhpcwEAAAAgCQkIc1SlToBQ6g5srGyVfDpHDiTpgVyC9ileahaxg84AAAAAAAAAAGQBAAAAAmxuAAAAAQAAAAF4CQAAbQAAAAYFAAAAAXgAAAAAAAAAAAgFAAAAAWUAAAAAAA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gUAAAAIbm93YWJhemEJAQAAAANleHAAAAABCQEAAAAJZHppZWxlbmllAAAAAgUAAAABawUAAAAIbm93YWJhemEEAAAAB3d5cGxhdGEJAABlAAAAAgUAAAAKYmFsYW5zVVNEVAkAAGQAAAACCQAAZQAAAAIFAAAACm5vd3lwb3ppb20FAAAACG5vd2FiYXphBQAAABJub3dha3dvdGFyb3dub3dhZ2kJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADVdMYW1iZXJ0dmFsdWUJAABpAAAAAgUAAAAHd3lwbGF0YQAAAAAAAAAAZAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAHV2FydW5lawAAAAAAAAAANAUAAAADbmlsAAAAANGL1ng=", "height": 1379351, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 29KRsxv4HE2Vb5SPC5HjajxeH35P4EsTo72Btfv9dC9T Next: ZTDU2bWSksVLBe8J2ZDaPTcuW4vbc3Pf5aN7WkfQij4 Diff:
OldNewDifferences
119119
120120
121121 @Callable(i)
122+func InwestycjaUSDT (wplata) = if (((balansUSDT + wplata) > balansUSDN))
123+ then {
124+ let b1 = balansUSDN
125+ let b2 = (balansUSDT + wplata)
126+ let a = mnozenie(dzielenie(b1, b2), exp(dzielenie((b2 + (17 * b1)), (18 * b2))))
127+ let W0 = LambertW0(a)
128+ let nowabaza = dzielenie(mnozenie((9 * b1), b2), (mnozenie((W0 * 9), b2) - dzielenie((17 * b1), 200000000)))
129+ let wyplata = ((nowabaza - baza) / 9)
130+ let nowypoziomrownowagi = (nowabaza / 18)
131+ let nowypoziom = ((balansUSDT + wplata) - nowypoziomrownowagi)
132+[IntegerEntry("WLambertvalue", (wyplata / 100))]
133+ }
134+ else {
135+ let b1 = (balansUSDT + wplata)
136+ let b2 = balansUSDN
137+ let a = mnozenie(dzielenie(b1, b2), exp(dzielenie((b2 + (17 * b1)), (18 * b2))))
138+ let W0 = LambertW0(a)
139+ let nowabaza = dzielenie(mnozenie((9 * b1), b2), (mnozenie((W0 * 9), b2) - dzielenie((17 * b1), 200000000)))
140+ let wyplata = ((nowabaza - baza) / 9)
141+ let nowypoziomrownowagi = (nowabaza / 18)
142+ let nowypoziom = (balansUSDN - nowypoziomrownowagi)
143+[IntegerEntry("WLambertvalue", (wyplata / 100))]
144+ }
145+
146+
147+
148+@Callable(i)
122149 func WyplataUSDNinnwestycji (kwota) = {
123150 let nowabaza = (baza - (kwota * 9))
124151 let nowakwotarownowagi = (nowabaza / 18)
138165 }
139166
140167
168+
169+@Callable(i)
170+func WyplataUSDTinnwestycji (kwota) = {
171+ let nowabaza = (baza - (kwota * 9))
172+ let nowakwotarownowagi = (nowabaza / 18)
173+ if ((balansUSDN > nowakwotarownowagi))
174+ then {
175+ let nowypoziom = ((balansUSDN - nowakwotarownowagi) + nowabaza)
176+ let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza)))
177+ let wyplata = ((balansUSDT - nowakwotarownowagi) + a)
178+[IntegerEntry("WLambertvalue", (wyplata / 100)), IntegerEntry("Warunek", 51)]
179+ }
180+ else {
181+ let k = (nowakwotarownowagi - balansUSDN)
182+ let nowypoziom = mnozenie(nowabaza, exp(dzielenie(k, nowabaza)))
183+ let wyplata = (balansUSDT - ((nowypoziom - nowabaza) + nowakwotarownowagi))
184+[IntegerEntry("WLambertvalue", (wyplata / 100)), IntegerEntry("Warunek", 52)]
185+ }
186+ }
187+
188+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let e = 271828182
55
66 let kwotarownowagi = 10000000000000
77
88 let baza = (kwotarownowagi * 18)
99
1010 let enabled = getInteger(this, "enabled")
1111
1212 let poziom = getIntegerValue(this, "Poziom")
1313
1414 let balansUSDN = (assetBalance(this, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d') * 100)
1515
1616 let balansUSDT = (assetBalance(this, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y') * 100)
1717
1818 func ln (x) = log(x, 8, e, 8, 8, DOWN)
1919
2020
2121 func exp (x) = pow(e, 8, x, 8, 8, DOWN)
2222
2323
2424 func mnozenie (x,y) = fraction(x, y, 100000000)
2525
2626
2727 func dzielenie (x,y) = fraction(x, 100000000, y)
2828
2929
3030 func Halley (x,w) = {
3131 let wTimes = (mnozenie(w, exp(w)) - x)
3232 let wPlusOneTimes = mnozenie((w + 100000000), exp(w))
3333 if ((wTimes != 0))
3434 then (w - dzielenie(wTimes, (wPlusOneTimes - dzielenie(mnozenie((w + 200000000), wTimes), ((2 * w) + 200000000)))))
3535 else w
3636 }
3737
3838
3939 func continuedfraction (x) = dzielenie(x, (100000000 + dzielenie(x, (100000000 + dzielenie(x, (200000000 + dzielenie((x * 5), (300000000 + dzielenie((x * 17), (1000000000 + dzielenie((x * 133), (1700000000 + dzielenie((x * 1927), (1900000000 + dzielenie((x * 13582711), 9442300000000)))))))))))))))
4040
4141
4242 func LambertW0 (x) = Halley(x, continuedfraction(x))
4343
4444
4545 @Callable(i)
4646 func USDTnaUSDNnaUSDT () = {
4747 let oplata = fraction(i.payments[0].amount, 4, 10000)
4848 let kwotawymiany = fraction((i.payments[0].amount - oplata), 100, 1)
4949 if ((enabled == 1))
5050 then if ((i.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'))
5151 then if ((kwotawymiany > (kwotarownowagi - balansUSDT)))
5252 then if ((balansUSDT >= kwotarownowagi))
5353 then {
5454 let nowypoziom = (poziom + kwotawymiany)
5555 let wyplata = mnozenie(baza, (ln(nowypoziom) - ln(poziom)))
5656 [ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Warunek", 1)]
5757 }
5858 else {
5959 let czesc1 = (kwotarownowagi - balansUSDT)
6060 let nowypoziom = (((balansUSDT + kwotawymiany) + baza) - kwotarownowagi)
6161 let wyplata = ((mnozenie(baza, (ln(nowypoziom) - ln(baza))) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza))))
6262 [ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 2)]
6363 }
6464 else {
6565 let wyplata = (poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza))))
6666 let nowypoziom = (poziom - wyplata)
6767 [ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 3)]
6868 }
6969 else if ((i.payments[0].assetId == base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'))
7070 then if ((kwotawymiany > (kwotarownowagi - balansUSDN)))
7171 then if ((balansUSDN >= kwotarownowagi))
7272 then {
7373 let nowypoziom = (poziom + kwotawymiany)
7474 let wyplata = mnozenie(baza, (ln(nowypoziom) - ln(poziom)))
7575 [ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Warunek", 11)]
7676 }
7777 else {
7878 let czesc1 = (kwotarownowagi - balansUSDN)
7979 let nowypoziom = (((balansUSDN + kwotawymiany) + baza) - kwotarownowagi)
8080 let wyplata = ((mnozenie(baza, (ln(nowypoziom) - ln(baza))) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza))))
8181 [ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 21)]
8282 }
8383 else {
8484 let wyplata = (poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza))))
8585 let nowypoziom = (poziom - wyplata)
8686 [ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 31)]
8787 }
8888 else throw("Nieobsługiwany asset")
8989 else throw("Kontrakt tymczasowo wyłączony")
9090 }
9191
9292
9393
9494 @Callable(i)
9595 func InwestycjaUSDN (wplata) = if (((balansUSDN + wplata) > balansUSDT))
9696 then {
9797 let b1 = balansUSDT
9898 let b2 = (balansUSDN + wplata)
9999 let a = mnozenie(dzielenie(b1, b2), exp(dzielenie((b2 + (17 * b1)), (18 * b2))))
100100 let W0 = LambertW0(a)
101101 let nowabaza = dzielenie(mnozenie((9 * b1), b2), (mnozenie((W0 * 9), b2) - dzielenie((17 * b1), 200000000)))
102102 let wyplata = ((nowabaza - baza) / 9)
103103 let nowypoziomrownowagi = (nowabaza / 18)
104104 let nowypoziom = ((balansUSDN + wplata) - nowypoziomrownowagi)
105105 [IntegerEntry("WLambertvalue", (wyplata / 100))]
106106 }
107107 else {
108108 let b1 = (balansUSDN + wplata)
109109 let b2 = balansUSDT
110110 let a = mnozenie(dzielenie(b1, b2), exp(dzielenie((b2 + (17 * b1)), (18 * b2))))
111111 let W0 = LambertW0(a)
112112 let nowabaza = dzielenie(mnozenie((9 * b1), b2), (mnozenie((W0 * 9), b2) - dzielenie((17 * b1), 200000000)))
113113 let wyplata = ((nowabaza - baza) / 9)
114114 let nowypoziomrownowagi = (nowabaza / 18)
115115 let nowypoziom = (balansUSDT - nowypoziomrownowagi)
116116 [IntegerEntry("WLambertvalue", (wyplata / 100))]
117117 }
118118
119119
120120
121121 @Callable(i)
122+func InwestycjaUSDT (wplata) = if (((balansUSDT + wplata) > balansUSDN))
123+ then {
124+ let b1 = balansUSDN
125+ let b2 = (balansUSDT + wplata)
126+ let a = mnozenie(dzielenie(b1, b2), exp(dzielenie((b2 + (17 * b1)), (18 * b2))))
127+ let W0 = LambertW0(a)
128+ let nowabaza = dzielenie(mnozenie((9 * b1), b2), (mnozenie((W0 * 9), b2) - dzielenie((17 * b1), 200000000)))
129+ let wyplata = ((nowabaza - baza) / 9)
130+ let nowypoziomrownowagi = (nowabaza / 18)
131+ let nowypoziom = ((balansUSDT + wplata) - nowypoziomrownowagi)
132+[IntegerEntry("WLambertvalue", (wyplata / 100))]
133+ }
134+ else {
135+ let b1 = (balansUSDT + wplata)
136+ let b2 = balansUSDN
137+ let a = mnozenie(dzielenie(b1, b2), exp(dzielenie((b2 + (17 * b1)), (18 * b2))))
138+ let W0 = LambertW0(a)
139+ let nowabaza = dzielenie(mnozenie((9 * b1), b2), (mnozenie((W0 * 9), b2) - dzielenie((17 * b1), 200000000)))
140+ let wyplata = ((nowabaza - baza) / 9)
141+ let nowypoziomrownowagi = (nowabaza / 18)
142+ let nowypoziom = (balansUSDN - nowypoziomrownowagi)
143+[IntegerEntry("WLambertvalue", (wyplata / 100))]
144+ }
145+
146+
147+
148+@Callable(i)
122149 func WyplataUSDNinnwestycji (kwota) = {
123150 let nowabaza = (baza - (kwota * 9))
124151 let nowakwotarownowagi = (nowabaza / 18)
125152 if ((balansUSDT > nowakwotarownowagi))
126153 then {
127154 let nowypoziom = ((balansUSDT - nowakwotarownowagi) + nowabaza)
128155 let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza)))
129156 let wyplata = ((balansUSDN - nowakwotarownowagi) + a)
130157 [IntegerEntry("WLambertvalue", (wyplata / 100)), IntegerEntry("Warunek", 51)]
131158 }
132159 else {
133160 let k = (nowakwotarownowagi - balansUSDT)
134161 let nowypoziom = mnozenie(nowabaza, exp(dzielenie(k, nowabaza)))
135162 let wyplata = (balansUSDN - ((nowypoziom - nowabaza) + nowakwotarownowagi))
136163 [IntegerEntry("WLambertvalue", (wyplata / 100)), IntegerEntry("Warunek", 52)]
137164 }
138165 }
139166
140167
168+
169+@Callable(i)
170+func WyplataUSDTinnwestycji (kwota) = {
171+ let nowabaza = (baza - (kwota * 9))
172+ let nowakwotarownowagi = (nowabaza / 18)
173+ if ((balansUSDN > nowakwotarownowagi))
174+ then {
175+ let nowypoziom = ((balansUSDN - nowakwotarownowagi) + nowabaza)
176+ let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza)))
177+ let wyplata = ((balansUSDT - nowakwotarownowagi) + a)
178+[IntegerEntry("WLambertvalue", (wyplata / 100)), IntegerEntry("Warunek", 51)]
179+ }
180+ else {
181+ let k = (nowakwotarownowagi - balansUSDN)
182+ let nowypoziom = mnozenie(nowabaza, exp(dzielenie(k, nowabaza)))
183+ let wyplata = (balansUSDT - ((nowypoziom - nowabaza) + nowakwotarownowagi))
184+[IntegerEntry("WLambertvalue", (wyplata / 100)), IntegerEntry("Warunek", 52)]
185+ }
186+ }
187+
188+

github/deemru/w8io/169f3d6 
53.27 ms