tx · HniMqT3XPHMkssR8E39GPktSWyVYPtTR1JpzNQnaV8jy

3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t:  -0.05000000 Waves

2021.02.07 20:51 [1388098] smart account 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t > SELF 0.00000000 Waves

{ "type": 13, "id": "HniMqT3XPHMkssR8E39GPktSWyVYPtTR1JpzNQnaV8jy", "fee": 5000000, "feeAssetId": null, "timestamp": 1612720312450, "version": 2, "chainId": 84, "sender": "3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t", "senderPublicKey": "Bo16mjUNTGCeZDYvQc6gHh46P21B3DqYCHoDt9CyzxHf", "proofs": [ "5tumz3SZD7RN6L4et5vNETHc2ak6SmoTaS5qdiWbzvmt41hQSMni8xFLXhtNvKUigZ5uVruzfG5Gkg8qmuQcYHX" ], "script": "base64:AAIEAAAAAAAAAA4IAhIAEgASABIAEgASAAAAABEAAAAAAWUAAAACeOY5CGsAAAAADmt3b3Rhcm93bm93YWdpCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAA5rd290YXJvd25vd2FnaQAAAAAEYmF6YQkAAGgAAAACBQAAAA5rd290YXJvd25vd2FnaQAAAAAAAAAAEgAAAAAHZW5hYmxlZAkABBoAAAACBQAAAAR0aGlzAgAAAAdlbmFibGVkAAAAAAZwb3ppb20JAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAABlBvemlvbQAAAAAKYmFsYW5zVVNETgkAAGgAAAACCQAD8AAAAAIFAAAABHRoaXMBAAAAILcwEVDzAH5/KJhWA+xRAa417KPR+5S8mya0Jgcjq6dKAAAAAAAAAABkAAAAAApiYWxhbnNVU0RUCQAAaAAAAAIJAAPwAAAAAgUAAAAEdGhpcwEAAAAgCQkIc1SlToBQ6g5srGyVfDpHDiTpgVyC9ileahaxg84AAAAAAAAAAGQBAAAAAmxuAAAAAQAAAAF4CQAAbQAAAA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bB3trFVlWCSikWmDG3/qWow8z6GBwPCAkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAAAAAZhbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB1dhcnVuZWsAAAAAAAAAADQFAAAAA25pbAkAAAIAAAABAgAAAB1Nb3plc3ogd3DFgmFjaWMgdHlsa28gcHJvdG9uYQAAAAFpAQAAAAR0ZXN0AAAAAAQAAAACYWEJAABrAAAAAwkAAGsAAAADAAAAAAAAAAACAAAAAAAAAAADAAAAAAAAAAABAAAAAAAAAAACAAAAAAAAAAADCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAJhYQUAAAACYWEFAAAAA25pbAAAAADZXmby", "height": 1388098, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4wivF7mFnbszokmDZT7fFJDGRuwpoQX98bKLfcEiY2JW Next: 8BJc8rbU8mL76VrNKtakGN5S3emZizuNkLwpD3XS3RSZ Diff:
OldNewDifferences
101101
102102
103103 @Callable(i)
104-func InwestycjaUSDN () = if ((i.payments[0].assetId == base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'))
105- then {
104+func InwestycjaUSDN () = if ((i.payments[0].assetId != base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'))
105+ then throw("Do tej funkcji mozesz wpłacać tylko USDN")
106+ else {
106107 let wplata = (i.payments[0].amount * 100)
107- if (((balansUSDN + wplata) > balansUSDT))
108- then {
109- let b1 = balansUSDT
110- let b2 = (balansUSDN + wplata)
111- let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
112- let W0 = LambertW0(a)
113- let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
114- let wyplata = ((nowabaza - baza) / 9)
115- let nowypoziomrownowagi = (nowabaza / 18)
116- let nowypoziom = (((balansUSDN + wplata) - nowypoziomrownowagi) + nowabaza)
108+ let b1 = if (((balansUSDN + wplata) > balansUSDT))
109+ then balansUSDT
110+ else (balansUSDN + wplata)
111+ let b2 = if (((balansUSDN + wplata) > balansUSDT))
112+ then (balansUSDN + wplata)
113+ else balansUSDT
114+ let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
115+ let W0 = LambertW0(a)
116+ let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
117+ let wyplata = ((nowabaza - baza) / 9)
118+ let nowypoziomrownowagi = (nowabaza / 18)
119+ let nowypoziom = (((balansUSDN + wplata) - nowypoziomrownowagi) + nowabaza)
117120 [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')]
118- }
119- else {
120- let b1 = (balansUSDN + wplata)
121- let b2 = balansUSDT
122- let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
123- let W0 = LambertW0(a)
124- let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
125- let wyplata = ((nowabaza - baza) / 9)
126- let nowypoziomrownowagi = (nowabaza / 18)
127- let nowypoziom = ((balansUSDT - nowypoziomrownowagi) + nowabaza)
128-[IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')]
129- }
130121 }
131- else throw("Do tej funkcji mozesz wpłacać tylko USDN")
132122
133123
134124
211201 else throw("Mozesz wpłacic tylko protona")
212202
213203
204+
205+@Callable(i)
206+func test () = {
207+ let aa = fraction(fraction(2, 3, 1), 2, 3)
208+[IntegerEntry("aa", aa)]
209+ }
210+
211+
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)
104-func InwestycjaUSDN () = if ((i.payments[0].assetId == base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'))
105- then {
104+func InwestycjaUSDN () = if ((i.payments[0].assetId != base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'))
105+ then throw("Do tej funkcji mozesz wpłacać tylko USDN")
106+ else {
106107 let wplata = (i.payments[0].amount * 100)
107- if (((balansUSDN + wplata) > balansUSDT))
108- then {
109- let b1 = balansUSDT
110- let b2 = (balansUSDN + wplata)
111- let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
112- let W0 = LambertW0(a)
113- let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
114- let wyplata = ((nowabaza - baza) / 9)
115- let nowypoziomrownowagi = (nowabaza / 18)
116- let nowypoziom = (((balansUSDN + wplata) - nowypoziomrownowagi) + nowabaza)
108+ let b1 = if (((balansUSDN + wplata) > balansUSDT))
109+ then balansUSDT
110+ else (balansUSDN + wplata)
111+ let b2 = if (((balansUSDN + wplata) > balansUSDT))
112+ then (balansUSDN + wplata)
113+ else balansUSDT
114+ let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
115+ let W0 = LambertW0(a)
116+ let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
117+ let wyplata = ((nowabaza - baza) / 9)
118+ let nowypoziomrownowagi = (nowabaza / 18)
119+ let nowypoziom = (((balansUSDN + wplata) - nowypoziomrownowagi) + nowabaza)
117120 [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')]
118- }
119- else {
120- let b1 = (balansUSDN + wplata)
121- let b2 = balansUSDT
122- let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
123- let W0 = LambertW0(a)
124- let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
125- let wyplata = ((nowabaza - baza) / 9)
126- let nowypoziomrownowagi = (nowabaza / 18)
127- let nowypoziom = ((balansUSDT - nowypoziomrownowagi) + nowabaza)
128-[IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')]
129- }
130121 }
131- else throw("Do tej funkcji mozesz wpłacać tylko USDN")
132122
133123
134124
135125 @Callable(i)
136126 func InwestycjaUSDT () = if ((i.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'))
137127 then {
138128 let wplata = (i.payments[0].amount * 100)
139129 if (((balansUSDT + wplata) > balansUSDN))
140130 then {
141131 let b1 = balansUSDN
142132 let b2 = (balansUSDT + wplata)
143133 let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
144134 let W0 = LambertW0(a)
145135 let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
146136 let wyplata = ((nowabaza - baza) / 9)
147137 let nowypoziomrownowagi = (nowabaza / 18)
148138 let nowypoziom = (((balansUSDT + wplata) - nowypoziomrownowagi) + nowabaza)
149139 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')]
150140 }
151141 else {
152142 let b1 = (balansUSDT + wplata)
153143 let b2 = balansUSDN
154144 let a = mnozenie(dzielenie(b1, b2), exp((5555555 + mnozenie(dzielenie(b1, b2), 94444444))))
155145 let W0 = LambertW0(a)
156146 let nowabaza = dzielenie(mnozenie(b1, b2), (mnozenie(W0, b2) - mnozenie(b1, 94444444)))
157147 let wyplata = ((nowabaza - baza) / 9)
158148 let nowypoziomrownowagi = (nowabaza / 18)
159149 let nowypoziom = ((balansUSDN - nowypoziomrownowagi) + nowabaza)
160150 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowypoziomrownowagi), Reissue(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', (wyplata / 100), true), ScriptTransfer(i.caller, (wyplata / 100), base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe')]
161151 }
162152 }
163153 else throw("Do tej funkcji mozesz wpłacać tylko USDT")
164154
165155
166156
167157 @Callable(i)
168158 func WyplataUSDN () = if ((i.payments[0].assetId == base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe'))
169159 then {
170160 let kwota = (i.payments[0].amount * 100)
171161 let nowabaza = (baza - (kwota * 9))
172162 let nowakwotarownowagi = (nowabaza / 18)
173163 if ((balansUSDT > nowakwotarownowagi))
174164 then {
175165 let nowypoziom = ((balansUSDT - nowakwotarownowagi) + nowabaza)
176166 let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza)))
177167 let wyplata = ((balansUSDN - nowakwotarownowagi) + a)
178168 [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)]
179169 }
180170 else {
181171 let k = (nowakwotarownowagi - balansUSDT)
182172 let nowypoziom = mnozenie12do8(nowabaza, exp12(dzielenie12(k, nowabaza)))
183173 let wyplata = (balansUSDN - ((nowypoziom - nowabaza) + nowakwotarownowagi))
184174 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), IntegerEntry("nowabaza", nowabaza), ScriptTransfer(i.caller, (wyplata / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount)]
185175 }
186176 }
187177 else throw("Mozesz wpłacic tylko protona")
188178
189179
190180
191181 @Callable(i)
192182 func WyplataUSDT () = if ((i.payments[0].assetId == base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe'))
193183 then {
194184 let kwota = (i.payments[0].amount * 100)
195185 let nowabaza = (baza - (kwota * 9))
196186 let nowakwotarownowagi = (nowabaza / 18)
197187 if ((balansUSDN > nowakwotarownowagi))
198188 then {
199189 let nowypoziom = ((balansUSDN - nowakwotarownowagi) + nowabaza)
200190 let a = mnozenie(nowabaza, (ln(nowypoziom) - ln(nowabaza)))
201191 let wyplata = ((balansUSDT - nowakwotarownowagi) + a)
202192 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount)]
203193 }
204194 else {
205195 let k = (nowakwotarownowagi - balansUSDN)
206196 let nowypoziom = mnozenie(nowabaza, exp(dzielenie(k, nowabaza)))
207197 let wyplata = (balansUSDT - ((nowypoziom - nowabaza) + nowakwotarownowagi))
208198 [IntegerEntry("Poziom", nowypoziom), IntegerEntry("kwotarownowagi", nowakwotarownowagi), ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), Burn(base58'2cg4HfZrcYtkRs7kE7G57EMuxt5K5uymrZQ58GaAD2xe', i.payments[0].amount), IntegerEntry("Warunek", 52)]
209199 }
210200 }
211201 else throw("Mozesz wpłacic tylko protona")
212202
213203
204+
205+@Callable(i)
206+func test () = {
207+ let aa = fraction(fraction(2, 3, 1), 2, 3)
208+[IntegerEntry("aa", aa)]
209+ }
210+
211+

github/deemru/w8io/169f3d6 
51.21 ms