tx · 8BJc8rbU8mL76VrNKtakGN5S3emZizuNkLwpD3XS3RSZ

3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t:  -0.05000000 Waves

2021.02.07 20:54 [1388102] smart account 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t > SELF 0.00000000 Waves

{ "type": 13, "id": "8BJc8rbU8mL76VrNKtakGN5S3emZizuNkLwpD3XS3RSZ", "fee": 5000000, "feeAssetId": null, "timestamp": 1612720480080, "version": 2, "chainId": 84, "sender": "3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t", "senderPublicKey": "Bo16mjUNTGCeZDYvQc6gHh46P21B3DqYCHoDt9CyzxHf", "proofs": [ "3yjskWcX43eWQNfZU8Gqu1xR59M6K8mB2nkXKSJS2sU2xqumsBhJWMPWR5feQ34t9fSMzbzRpy3TyBZiF9G5bpP8" ], "script": "base64:AAIEAAAAAAAAAA4IAhIAEgASABIAEgASAAAAABEAAAAAAWUAAAACeOY5CGsAAAAADmt3b3Rhcm93bm93YWdpCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAA5rd290YXJvd25vd2FnaQAAAAAEYmF6YQkAAGgAAAACBQAAAA5rd290YXJvd25vd2FnaQAAAAAAAAAAEgAAAAAHZW5hYmxlZAkABBoAAAACBQAAAAR0aGlzAgAAAAdlbmFibGVkAAAAAAZwb3ppb20JAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAABlBvemlvbQAAAAAKYmFsYW5zVVNETgkAAGgAAAACCQAD8AAAAAIFAAAABHRoaXMBAAAAILcwEVDzAH5/KJhWA+xRAa417KPR+5S8mya0Jgcjq6dKAAAAAAAAAABkAAAAAApiYWxhbnNVU0RUCQAAaAAAAAIJAAPwAAAAAgUAAAAEdGhpcwEAAAAgCQkIc1SlToBQ6g5srGyVfDpHDiTpgVyC9ileahaxg84AAAAAAAAAAGQBAAAAAmxuAAAAAQAAAAF4CQAAb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+QwQGbB3trFVlWCSikWmDG3/qWow8z6GBwPCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB1dhcnVuZWsAAAAAAAAAADQFAAAAA25pbAkAAAIAAAABAgAAAB1Nb3plc3ogd3DFgmFjaWMgdHlsa28gcHJvdG9uYQAAAAFpAQAAAAR0ZXN0AAAAAAQAAAACYWEJAABrAAAAAwAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAAAQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAACYWEFAAAAAmFhBQAAAANuaWwAAAAA5SPKfw==", "height": 1388102, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HniMqT3XPHMkssR8E39GPktSWyVYPtTR1JpzNQnaV8jy Next: 6hAAcop7nfqjVxscPffqkdk2V6nz1AbA7vygDHUCL63o Diff:
OldNewDifferences
204204
205205 @Callable(i)
206206 func test () = {
207- let aa = fraction(fraction(2, 3, 1), 2, 3)
207+ let aa = fraction(2, 3, 1)
208208 [IntegerEntry("aa", aa)]
209209 }
210210
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let e = 2718281828459
55
66 let kwotarownowagi = getIntegerValue(this, "kwotarownowagi")
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 / 10000), 8, x, 8, 8, DOWN)
2222
2323
2424 func exp12 (x) = pow(e, 12, x, 12, 12, DOWN)
2525
2626
2727 func mnozenie (x,y) = fraction(x, y, 100000000)
2828
2929
3030 func mnozenie12do8 (x,y) = fraction(x, y, 1000000000000)
3131
3232
3333 func dzielenie (x,y) = fraction(x, 100000000, y)
3434
3535
3636 func dzielenie12 (x,y) = fraction(x, 1000000, (y / 1000000))
3737
3838
3939 func Halley (x,w) = {
4040 let wTimes = (mnozenie(w, exp(w)) - x)
4141 let wPlusOneTimes = mnozenie((w + 100000000), exp(w))
4242 if ((wTimes != 0))
4343 then (w - dzielenie(wTimes, (wPlusOneTimes - dzielenie(mnozenie((w + 200000000), wTimes), ((2 * w) + 200000000)))))
4444 else w
4545 }
4646
4747
4848 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)))))))))))))))
4949
5050
5151 func LambertW0 (x) = Halley(x, continuedfraction(x))
5252
5353
5454 @Callable(i)
5555 func USDTnaUSDNnaUSDT () = {
5656 let oplata = fraction(i.payments[0].amount, 4, 10000)
5757 let kwotawymiany = fraction((i.payments[0].amount - oplata), 100, 1)
5858 if ((enabled == 1))
5959 then if ((i.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'))
6060 then if ((kwotawymiany > (kwotarownowagi - balansUSDT)))
6161 then if ((balansUSDT >= kwotarownowagi))
6262 then {
6363 let nowypoziom = (poziom + kwotawymiany)
6464 let wyplata = mnozenie(baza, (ln(nowypoziom) - ln(poziom)))
6565 [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)]
6666 }
6767 else {
6868 let czesc1 = (kwotarownowagi - balansUSDT)
6969 let nowypoziom = (((balansUSDT + kwotawymiany) + baza) - kwotarownowagi)
7070 let wyplata = ((mnozenie(baza, (ln(nowypoziom) - ln(baza))) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza))))
7171 [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)]
7272 }
7373 else {
7474 let wyplata = (poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza))))
7575 let nowypoziom = (poziom - wyplata)
7676 [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)]
7777 }
7878 else if ((i.payments[0].assetId == base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'))
7979 then if ((kwotawymiany > (kwotarownowagi - balansUSDN)))
8080 then if ((balansUSDN >= kwotarownowagi))
8181 then {
8282 let nowypoziom = (poziom + kwotawymiany)
8383 let wyplata = mnozenie(baza, (ln(nowypoziom) - ln(poziom)))
8484 [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)]
8585 }
8686 else {
8787 let czesc1 = (kwotarownowagi - balansUSDN)
8888 let nowypoziom = (((balansUSDN + kwotawymiany) + baza) - kwotarownowagi)
8989 let wyplata = ((mnozenie(baza, (ln(nowypoziom) - ln(baza))) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza))))
9090 [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)]
9191 }
9292 else {
9393 let wyplata = (poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza))))
9494 let nowypoziom = (poziom - wyplata)
9595 [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)]
9696 }
9797 else throw("Nieobsługiwany asset")
9898 else throw("Kontrakt tymczasowo wyłączony")
9999 }
100100
101101
102102
103103 @Callable(i)
104104 func InwestycjaUSDN () = if ((i.payments[0].assetId != base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'))
105105 then throw("Do tej funkcji mozesz wpłacać tylko USDN")
106106 else {
107107 let wplata = (i.payments[0].amount * 100)
108108 let b1 = if (((balansUSDN + wplata) > balansUSDT))
109109 then balansUSDT
110110 else (balansUSDN + wplata)
111111 let b2 = if (((balansUSDN + wplata) > balansUSDT))
112112 then (balansUSDN + wplata)
113113 else balansUSDT
114114 let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
115115 let W0 = LambertW0(a)
116116 let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
117117 let wyplata = ((nowabaza - baza) / 9)
118118 let nowypoziomrownowagi = (nowabaza / 18)
119119 let nowypoziom = (((balansUSDN + wplata) - nowypoziomrownowagi) + nowabaza)
120120 [IntegerEntry("W0", W0), IntegerEntry("a", a), IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')]
121121 }
122122
123123
124124
125125 @Callable(i)
126126 func InwestycjaUSDT () = if ((i.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'))
127127 then {
128128 let wplata = (i.payments[0].amount * 100)
129129 if (((balansUSDT + wplata) > balansUSDN))
130130 then {
131131 let b1 = balansUSDN
132132 let b2 = (balansUSDT + wplata)
133133 let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
134134 let W0 = LambertW0(a)
135135 let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
136136 let wyplata = ((nowabaza - baza) / 9)
137137 let nowypoziomrownowagi = (nowabaza / 18)
138138 let nowypoziom = (((balansUSDT + wplata) - nowypoziomrownowagi) + nowabaza)
139139 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')]
140140 }
141141 else {
142142 let b1 = (balansUSDT + wplata)
143143 let b2 = balansUSDN
144144 let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
145145 let W0 = LambertW0(a)
146146 let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
147147 let wyplata = ((nowabaza - baza) / 9)
148148 let nowypoziomrownowagi = (nowabaza / 18)
149149 let nowypoziom = ((balansUSDN - nowypoziomrownowagi) + nowabaza)
150150 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')]
151151 }
152152 }
153153 else throw("Do tej funkcji mozesz wpłacać tylko USDT")
154154
155155
156156
157157 @Callable(i)
158158 func WyplataUSDN () = if ((i.payments[0].assetId == base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe'))
159159 then {
160160 let kwota = (i.payments[0].amount * 100)
161161 let nowabaza = (baza - (kwota * 9))
162162 let nowakwotarownowagi = (nowabaza / 18)
163163 if ((balansUSDT > nowakwotarownowagi))
164164 then {
165165 let nowypoziom = ((balansUSDT - nowakwotarownowagi) + nowabaza)
166166 let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza)))
167167 let wyplata = ((balansUSDN - nowakwotarownowagi) + a)
168168 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), IntegerEntry("a1", a), IntegerEntry("nowabaza", nowabaza), ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount)]
169169 }
170170 else {
171171 let k = (nowakwotarownowagi - balansUSDT)
172172 let nowypoziom = mnozenie12do8(nowabaza, exp12(dzielenie12(k, nowabaza)))
173173 let wyplata = (balansUSDN - ((nowypoziom - nowabaza) + nowakwotarownowagi))
174174 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), IntegerEntry("nowabaza", nowabaza), ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount)]
175175 }
176176 }
177177 else throw("Mozesz wpłacic tylko protona")
178178
179179
180180
181181 @Callable(i)
182182 func WyplataUSDT () = if ((i.payments[0].assetId == base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe'))
183183 then {
184184 let kwota = (i.payments[0].amount * 100)
185185 let nowabaza = (baza - (kwota * 9))
186186 let nowakwotarownowagi = (nowabaza / 18)
187187 if ((balansUSDN > nowakwotarownowagi))
188188 then {
189189 let nowypoziom = ((balansUSDN - nowakwotarownowagi) + nowabaza)
190190 let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza)))
191191 let wyplata = ((balansUSDT - nowakwotarownowagi) + a)
192192 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount)]
193193 }
194194 else {
195195 let k = (nowakwotarownowagi - balansUSDN)
196196 let nowypoziom = mnozenie(nowabaza, exp(dzielenie(k, nowabaza)))
197197 let wyplata = (balansUSDT - ((nowypoziom - nowabaza) + nowakwotarownowagi))
198198 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount), IntegerEntry("Warunek", 52)]
199199 }
200200 }
201201 else throw("Mozesz wpłacic tylko protona")
202202
203203
204204
205205 @Callable(i)
206206 func test () = {
207- let aa = fraction(fraction(2, 3, 1), 2, 3)
207+ let aa = fraction(2, 3, 1)
208208 [IntegerEntry("aa", aa)]
209209 }
210210
211211

github/deemru/w8io/169f3d6 
47.11 ms