tx · 7yHk3FsmUhzvn1LCePodUu3Hf3j11uHP6sqMr9X8z4T5

3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t:  -0.05000000 Waves

2021.01.25 17:29 [1369147] smart account 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t > SELF 0.00000000 Waves

{ "type": 13, "id": "7yHk3FsmUhzvn1LCePodUu3Hf3j11uHP6sqMr9X8z4T5", "fee": 5000000, "feeAssetId": null, "timestamp": 1611585028103, "version": 2, "chainId": 84, "sender": "3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t", "senderPublicKey": "Bo16mjUNTGCeZDYvQc6gHh46P21B3DqYCHoDt9CyzxHf", "proofs": [ "254Z8QWKiadLBzRGvZf9YBnmVDxbdKY3zD5FPY2UsvtqhE1MXNCVH6L5wiJBzP1NhpYMqrNX9Wz49uAhxwBJDixU" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAACgAAAAABZQAAAAAAEDPE1gAAAAAOa3dvdGFyb3dub3dhZ2kAAAAAF0h26AAAAAAABGJhemEJAABpAAAAAgUAAAAOa3dvdGFyb3dub3dhZ2kAAAAAAAAAAAIAAAAABnBvemlvbQAAAAALpDt0AAAAAAAKYmFsYW5zVVNETgAAAAAXSHboAAAAAAAKYmFsYW5zVVNEVAAAAAAXSHboAAEAAAACbG4AAAABAAAAAXgJAABtAAAABgUAAAABeAAAAAAAAAAACAUAAAABZQAAAAAAAAAACAAAAAAAAAAACAUAAAAERE9XTgEAAAADZXhwAAAAAQAAAAF4CQAAbAAAAAYFAAAAAWUAAAAAAAAAAAgFAAAAAXgAAAAAAAAAAAgAAAAAAAAAAAgFAAAABERPV04BAAAACG1ub3plbmllAAAAAgAAAAF4AAAAAXkJAABrAAAAAwUAAAABeAUAAAABeQAAAAAABfXhAAEAAAAJZHppZWxlbmllAAAAAgAAAAF4AAAAAXkJAABrAAAAAwUAAAABeAAAAAAABfXhAAUAAAABeQAAAAEAAAABaQEAAAAHd3ltaWFuYQA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AAAAAEJAQAAAAlkemllbGVuaWUAAAACBQAAAAZjemVzYzEFAAAABGJhemEJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACFd5cMWCYXRhBQAAAAd3eXBsYXRhCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAZQb3ppb20FAAAACm5vd3lwb3ppb20JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB1dhcnVuZWsAAAAAAAAAAAIFAAAAA25pbAQAAAAHd3lwbGF0YQkAAGsAAAADCQAAZQAAAAIFAAAABnBvemlvbQkBAAAACWR6aWVsZW5pZQAAAAIFAAAABnBvemlvbQkBAAAAA2V4cAAAAAEJAQAAAAlkemllbGVuaWUAAAACBQAAAAxrd290YXd5bWlhbnkFAAAABGJhemEAAAAAAAAAAAEAAAAAAAAAAGQEAAAACm5vd3lwb3ppb20JAABlAAAAAgUAAAAGcG96aW9tBQAAAAd3eXBsYXRhCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAdXeXBsYXRhBQAAAAd3eXBsYXRhCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAZQb3ppb20FAAAACm5vd3lwb3ppb20JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB1dhcnVuZWsAAAAAAAAAAAMFAAAAA25pbAAAAAAUzaH5", "height": 1369147, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7kuT1hxxXFkEsZn23pGRmXxcs1t2zu89hF42FJoK26f3 Next: BvRMcuMHk8Bqt2JDoHoCTvXUoyPg1nEqYRxXDEVZkbsV Diff:
OldNewDifferences
3333 then {
3434 let nowypoziom = (poziom + kwotawymiany)
3535 let wyplata = fraction(mnozenie(baza, (ln(nowypoziom) - ln(poziom))), 1, 100)
36-[IntegerEntry("Poziom", nowypoziom), IntegerEntry("Wyplata", wyplata), IntegerEntry("Warunek ", 1)]
36+[IntegerEntry("Poziom", nowypoziom), IntegerEntry("Wyplata", wyplata), IntegerEntry("Warunek", 1), DeleteEntry("Warunek ")]
3737 }
3838 else {
3939 let czesc1 = (1000 - balansUSDT)
4040 let czesc2 = (kwotawymiany - czesc1)
4141 let nowypoziom = czesc2
4242 let wyplata = ((fraction(mnozenie(baza, (ln(nowypoziom) - ln(baza))), 1, 100) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza))))
43-[IntegerEntry("Wypłata", wyplata), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek ", 2)]
43+[IntegerEntry("Wypłata", wyplata), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 2)]
4444 }
4545 else {
4646 let wyplata = fraction((poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza)))), 1, 100)
4747 let nowypoziom = (poziom - wyplata)
48-[IntegerEntry("Wyplata", wyplata), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek ", 3)]
48+[IntegerEntry("Wyplata", wyplata), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 3)]
4949 }
5050 }
5151
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let e = 271828182
55
66 let kwotarownowagi = 100000000000
77
88 let baza = (kwotarownowagi / 2)
99
1010 let poziom = 50000000000
1111
1212 let balansUSDN = 100000000000
1313
1414 let balansUSDT = 100000000000
1515
1616 func ln (x) = log(x, 8, e, 8, 8, DOWN)
1717
1818
1919 func exp (x) = pow(e, 8, x, 8, 8, DOWN)
2020
2121
2222 func mnozenie (x,y) = fraction(x, y, 100000000)
2323
2424
2525 func dzielenie (x,y) = fraction(x, 100000000, y)
2626
2727
2828 @Callable(i)
2929 func wymiana () = {
3030 let kwotawymiany = 5000000000
3131 if ((kwotawymiany > (kwotarownowagi - balansUSDT)))
3232 then if ((balansUSDT > 1000))
3333 then {
3434 let nowypoziom = (poziom + kwotawymiany)
3535 let wyplata = fraction(mnozenie(baza, (ln(nowypoziom) - ln(poziom))), 1, 100)
36-[IntegerEntry("Poziom", nowypoziom), IntegerEntry("Wyplata", wyplata), IntegerEntry("Warunek ", 1)]
36+[IntegerEntry("Poziom", nowypoziom), IntegerEntry("Wyplata", wyplata), IntegerEntry("Warunek", 1), DeleteEntry("Warunek ")]
3737 }
3838 else {
3939 let czesc1 = (1000 - balansUSDT)
4040 let czesc2 = (kwotawymiany - czesc1)
4141 let nowypoziom = czesc2
4242 let wyplata = ((fraction(mnozenie(baza, (ln(nowypoziom) - ln(baza))), 1, 100) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza))))
43-[IntegerEntry("Wypłata", wyplata), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek ", 2)]
43+[IntegerEntry("Wypłata", wyplata), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 2)]
4444 }
4545 else {
4646 let wyplata = fraction((poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza)))), 1, 100)
4747 let nowypoziom = (poziom - wyplata)
48-[IntegerEntry("Wyplata", wyplata), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek ", 3)]
48+[IntegerEntry("Wyplata", wyplata), IntegerEntry("Poziom", nowypoziom), IntegerEntry("Warunek", 3)]
4949 }
5050 }
5151
5252

github/deemru/w8io/026f985 
23.81 ms