tx · 4Kboc9svmGty1S3CvaMEwNpzfSqy77RtXEpy15vmpKxr

3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t:  -0.05000000 Waves

2021.02.21 22:25 [1408290] smart account 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t > SELF 0.00000000 Waves

{ "type": 13, "id": "4Kboc9svmGty1S3CvaMEwNpzfSqy77RtXEpy15vmpKxr", "fee": 5000000, "feeAssetId": null, "timestamp": 1613935532892, "version": 2, "chainId": 84, "sender": "3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t", "senderPublicKey": "Bo16mjUNTGCeZDYvQc6gHh46P21B3DqYCHoDt9CyzxHf", "proofs": [ "2BBvoS2NMQFasKhNMTDUmVDD9JTQuq6mamzjDvgqHG9UvEQTx1eXdL3WzS7d9egeaKE81VXfYoi6kfzCGj7zNGDM" ], "script": "base64:AAIEAAAAAAAAAA0IAhIAEgASAwoBCBIAAAAAEgAAAAABZQAAAAAAEDPE1gAAAAAOa3dvdGFyb3dub3dhZ2kJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADmt3b3Rhcm93bm93YWdpAAAAAARiYXphCQAAaAAAAAIFAAAADmt3b3Rhcm93bm93YWdpAAAAAAAAAAASAAAAAAdlbmFibGVkCQAEGgAAAAIFAAAABHRoaXMCAAAAB2VuYWJsZWQAAAAABnBvemlvbQkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAAGUG96aW9tAAAAAARVU0RUAQAAACAJCQhzVKVOgFDqDmysbJV8OkcOJOmBXIL2KV5qFrGDzgAAAAAEVVNETgEAAAAgtzARUPMAfn8omFYD7FEBrjXso9H7lLybJrQmByOrp0oAAAAABlByb3RvbgEAAAAgF/8tQNcT5DBAZsHe2sVWVYJKKRaYMbf+pajDzPoYHA8AAAAACmJhbGFuc1VTRE4JAABoAAAAAgkAA/AAAAACBQAAAAR0aGlzBQAAAARVU0ROAAAAA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FnaQUAAAAKYmFsYW5zVVNETgQAAAAKbm93eXBvemlvbQkBAAAACG1ub3plbmllAAAAAgUAAAAIbm93YWJhemEJAQAAAAR1ZXhwAAAAAQkBAAAACWR6aWVsZW5pZQAAAAIFAAAAAWsFAAAACG5vd2FiYXphBAAAAAd3eXBsYXRhCQAAZQAAAAIFAAAACmJhbGFuc1VTRFQJAABkAAAAAgkAAGUAAAACBQAAAApub3d5cG96aW9tBQAAAAhub3dhYmF6YQUAAAASbm93YWt3b3Rhcm93bm93YWdpCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAZQb3ppb20FAAAACm5vd3lwb3ppb20JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADmt3b3Rhcm93bm93YWdpBQAAABJub3dha3dvdGFyb3dub3dhZ2kJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyCQAAaQAAAAIFAAAAB3d5cGxhdGEAAAAAAAAAAGQFAAAABFVTRFQJAARMAAAAAgkBAAAABEJ1cm4AAAACBQAAAAZQcm90b24ICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAHV2FydW5lawAAAAAAAAAANAUAAAADbmlsAAAAAPYkeNw=", "height": 1408290, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7k1osDZtXDHTWkU15z6u5azgXJjWYNrvQcruSm8sqFdo Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
2-{-# CONTENT_TYPE EXPRESSION #-}
3-if (sigVerify(tx.bodyBytes, tx.proofs[0], base58'Bo16mjUNTGCeZDYvQc6gHh46P21B3DqYCHoDt9CyzxHf'))
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let e = 271828182
5+
6+let kwotarownowagi = getIntegerValue(this, "kwotarownowagi")
7+
8+let baza = (kwotarownowagi * 18)
9+
10+let enabled = getInteger(this, "enabled")
11+
12+let poziom = getIntegerValue(this, "Poziom")
13+
14+let USDT = base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'
15+
16+let USDN = base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'
17+
18+let Proton = base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe'
19+
20+let balansUSDN = (assetBalance(this, USDN) * 100)
21+
22+let balansUSDT = (assetBalance(this, USDT) * 100)
23+
24+func ln (x) = log(x, 8, e, 8, 8, DOWN)
25+
26+
27+func exp (x) = pow(e, 8, x, 8, 8, DOWN)
28+
29+
30+func uexp (x) = pow(e, 8, x, 8, 8, UP)
31+
32+
33+func mnozenie (x,y) = fraction(x, y, 100000000)
34+
35+
36+func dzielenie (x,y) = fraction(x, 100000000, y)
37+
38+
39+func Halley (x,w) = {
40+ let wTimes = (mnozenie(w, exp(w)) - x)
41+ let wPlusOneTimes = mnozenie((w + 100000000), exp(w))
42+ if ((wTimes != 0))
43+ then (w - dzielenie(wTimes, (wPlusOneTimes - dzielenie(mnozenie((w + 200000000), wTimes), ((2 * w) + 200000000)))))
44+ else w
45+ }
46+
47+
48+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)))))))))))))))
49+
50+
51+func LambertW0 (x) = Halley(x, continuedfraction(x))
52+
53+
54+@Callable(i)
55+func USDTnaUSDNnaUSDT () = {
56+ let oplata = 0
57+ let kwotawymiany = fraction((i.payments[0].amount - oplata), 100, 1)
58+ if ((enabled != 1))
59+ then throw("Kontrakt tymczasowo wyłączony")
60+ else if (!(if ((i.payments[0].assetId == USDT))
61+ then true
62+ else (i.payments[0].assetId == USDN)))
63+ then throw("Nieobsługiwany asset")
64+ else if ((size(i.payments) != 1))
65+ then throw("Wymagana jedna płatność")
66+ else {
67+ let balans = if ((i.payments[0].assetId == USDT))
68+ then balansUSDT
69+ else balansUSDN
70+ let assetA = if ((i.payments[0].assetId == USDT))
71+ then USDN
72+ else USDT
73+ let assetB = if ((i.payments[0].assetId == USDT))
74+ then USDT
75+ else USDN
76+ if ((kwotawymiany > (kwotarownowagi - balans)))
77+ then if ((balans >= kwotarownowagi))
78+ then {
79+ let nowypoziom = (poziom + kwotawymiany)
80+ let wyplata = mnozenie(baza, (ln(nowypoziom) - ln(poziom)))
81+[ScriptTransfer(i.caller, (wyplata / 100), assetA), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, assetB), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Warunek", 1)]
82+ }
83+ else {
84+ let czesc1 = (kwotarownowagi - balans)
85+ let nowypoziom = (((balans + kwotawymiany) + baza) - kwotarownowagi)
86+ let wyplata = ((mnozenie(baza, (ln(nowypoziom) - ln(baza))) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza))))
87+[ScriptTransfer(i.caller, (wyplata / 100), assetA), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, assetB), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 2)]
88+ }
89+ else {
90+ let wyplata = (poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza))))
91+ let nowypoziom = (poziom - wyplata)
92+[ScriptTransfer(i.caller, (wyplata / 100), assetA), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), oplata, assetB), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 3)]
93+ }
94+ }
95+ }
96+
97+
98+
99+@Callable(i)
100+func InwestycjaUSDNvUSDT () = if (!(if ((i.payments[0].assetId == USDN))
4101 then true
5- else sigVerify(tx.bodyBytes, tx.proofs[0], base58'An8iS2uf45YUWc9wszucqnXPwpXLLzgPowfVxYJgSwFq')
102+ else (i.payments[0].assetId == USDT)))
103+ then throw("Do tej funkcji mozesz wpłacać tylko USDN lub USDT")
104+ else {
105+ let wplata = (i.payments[0].amount * 100)
106+ let b1 = if ((i.payments[0].assetId == USDN))
107+ then if (((balansUSDN + wplata) > balansUSDT))
108+ then balansUSDT
109+ else (balansUSDN + wplata)
110+ else if (((balansUSDT + wplata) > balansUSDN))
111+ then balansUSDN
112+ else (balansUSDT + wplata)
113+ let b2 = if ((i.payments[0].assetId == USDN))
114+ then if (((balansUSDN + wplata) > balansUSDT))
115+ then (balansUSDN + wplata)
116+ else balansUSDT
117+ else if (((balansUSDT + wplata) > balansUSDN))
118+ then (balansUSDT + wplata)
119+ else balansUSDN
120+ let balans = if ((i.payments[0].assetId == USDN))
121+ then balansUSDN
122+ else balansUSDT
123+ let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
124+ let W0 = LambertW0(a)
125+ let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
126+ let wyplata = ((nowabaza - baza) / 9)
127+ let nowypoziomrownowagi = (nowabaza / 18)
128+ let nowypoziom = (((balans + wplata) - nowypoziomrownowagi) + nowabaza)
129+[IntegerEntry("W0", W0), IntegerEntry("a", a), IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(Proton, (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), Proton)]
130+ }
131+
132+
133+
134+@Callable(i)
135+func WyplataUSDNvUSDT (twyplaty) = if ((i.payments[0].assetId != Proton))
136+ then throw("Mozesz wpłacic tylko protona")
137+ else if (!(if ((twyplaty == "USDT"))
138+ then true
139+ else (twyplaty == "USDN")))
140+ then throw("Błędny token wypłaty, masz do wyboru USDT i USDN")
141+ else {
142+ let balansA = if ((twyplaty == "USDN"))
143+ then balansUSDT
144+ else balansUSDN
145+ let balansB = if ((twyplaty == "USDN"))
146+ then balansUSDN
147+ else balansUSDT
148+ let tokenwyplaty = if ((twyplaty == "USDN"))
149+ then USDN
150+ else USDT
151+ let kwota = (i.payments[0].amount * 100)
152+ let nowabaza = (baza - (kwota * 9))
153+ let nowakwotarownowagi = (nowabaza / 18)
154+ if ((balansUSDT > nowakwotarownowagi))
155+ then {
156+ let nowypoziom = ((balansUSDT - nowakwotarownowagi) + nowabaza)
157+ let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza)))
158+ let wyplata = ((balansUSDN - nowakwotarownowagi) + a)
159+[IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), IntegerEntry("a1", a), IntegerEntry("nowabaza", nowabaza), ScriptTransfer(i.caller, (wyplata / 100), USDN), Burn(Proton, i.payments[0].amount)]
160+ }
161+ else {
162+ let k = (nowakwotarownowagi - balansUSDT)
163+ let ilenakoncie = (mnozenie(nowabaza, exp(dzielenie(k, nowabaza))) - nowabaza)
164+ let wyplata = (balansUSDN - ilenakoncie)
165+ let nowypoziom = ((balansUSDN - nowakwotarownowagi) + nowabaza)
166+[IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), IntegerEntry("nowabaza", nowabaza), ScriptTransfer(i.caller, (wyplata / 100), USDN), Burn(Proton, i.payments[0].amount)]
167+ }
168+ }
169+
170+
171+
172+@Callable(i)
173+func WyplataUSDT () = if ((i.payments[0].assetId != Proton))
174+ then throw("Mozesz wpłacic tylko protona")
175+ else {
176+ let kwota = (i.payments[0].amount * 100)
177+ let nowabaza = (baza - (kwota * 9))
178+ let nowakwotarownowagi = (nowabaza / 18)
179+ if ((balansUSDN > nowakwotarownowagi))
180+ then {
181+ let nowypoziom = ((balansUSDN - nowakwotarownowagi) + nowabaza)
182+ let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza)))
183+ let wyplata = ((balansUSDT - nowakwotarownowagi) + a)
184+[IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), ScriptTransfer(i.caller, (wyplata / 100), USDT), Burn(Proton, i.payments[0].amount)]
185+ }
186+ else {
187+ let k = (nowakwotarownowagi - balansUSDN)
188+ let nowypoziom = mnozenie(nowabaza, uexp(dzielenie(k, nowabaza)))
189+ let wyplata = (balansUSDT - ((nowypoziom - nowabaza) + nowakwotarownowagi))
190+[IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), ScriptTransfer(i.caller, (wyplata / 100), USDT), Burn(Proton, i.payments[0].amount), IntegerEntry("Warunek", 52)]
191+ }
192+ }
193+
194+

github/deemru/w8io/169f3d6 
50.51 ms