tx · JAHuLpq9dWoy4TRNqsm4ezAujkBNNtVnun5iuKR2tSHk

3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t:  -0.05000000 Waves

2021.01.28 21:58 [1373732] smart account 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t > SELF 0.00000000 Waves

{ "type": 13, "id": "JAHuLpq9dWoy4TRNqsm4ezAujkBNNtVnun5iuKR2tSHk", "fee": 5000000, "feeAssetId": null, "timestamp": 1611860373376, "version": 2, "chainId": 84, "sender": "3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t", "senderPublicKey": "Bo16mjUNTGCeZDYvQc6gHh46P21B3DqYCHoDt9CyzxHf", "proofs": [ "2HwhD2xmwgdHtsbPBtzgLReLSw5svMrFoTRKBdWFWCzATSZtZCFhnc298U1M8jzbLA2kL18QfhVwVHehRN2gPdHV" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAAKAAAAAAFlAAAAAAAQM8TWAAAAAA5rd290YXJvd25vd2FnaQAAAAkYTnKgAAAAAAAEYmF6YQkAAGgAAAACBQAAAA5rd290YXJvd25vd2FnaQAAAAAAAAAAEgAAAAAGcG96aW9tCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAZQb3ppb20AAAAACmJhbGFuc1VTRE4JAABoAAAAAgkAA/AAAAACBQAAAAR0aGlzAQAAACC3MBFQ8wB+fyiYVgPsUQGuNeyj0fuUvJsmtCYHI6unSgAAAAAAAAAAZAAAAAAKYmFsYW5zVVNEVAkAAGgAAAACCQAD8AAAAAIFAAAABHRoaXMBAAAAIAkJCHNUpU6AUOoObKxslXw6Rw4k6YFcgvYpXmoWsYPOAAAAAAAAAABkAQAAAAJsbgAAAAEAAAABeAkAAG0AAAAGBQAAAAF4AAAAAAAAAAAIBQAAAAFlAAAAAAAAAAAIAAAAAAAAAAAIBQAAAARET1dOAQAAAANleHAAAAABAAAAAXgJAABsAAAABgUAAAABZQAAAAAAAAAAC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ZQAAAAIFAAAABnBvemlvbQUAAAAHd3lwbGF0YQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIJAABpAAAAAgUAAAAHd3lwbGF0YQAAAAAAAAAAZAEAAAAgCQkIc1SlToBQ6g5srGyVfDpHDiTpgVyC9ileahaxg84JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB1d5cGxhdGEJAABrAAAAAwUAAAAHd3lwbGF0YQAAAAAAAAAAAQAAAAAAAAAAZAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAHV2FydW5lawAAAAAAAAAAHwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAEVVNEVAkAAGsAAAADCQAAZQAAAAIFAAAACmJhbGFuc1VTRFQFAAAAB3d5cGxhdGEAAAAAAAAAAAEAAAAAAAAAAGQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABFVTRE4JAABrAAAAAwkAAGQAAAACBQAAAApiYWxhbnNVU0ROBQAAAAxrd290YXd5bWlhbnkAAAAAAAAAAAEAAAAAAAAAAGQFAAAAA25pbAAAAADRQIE5", "height": 1373732, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DU9jSZnXYQawoAuVBsmYj73bgm954ZNCA4RFmfbyQk1s Next: 3B7r7AW4Yt4wRGxMM8jJyBdwGHUmmR4fLhTgWqtRnrEY Diff:
OldNewDifferences
2626
2727
2828 @Callable(i)
29-func USDTnaUSDN () = {
29+func USDTnaUSDNnaUSDT () = {
3030 let oplata = fraction(i.payments[0].amount, 4, 10000)
3131 let kwotawymiany = fraction((i.payments[0].amount - oplata), 100, 1)
3232 if ((i.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'))
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 poziom = getIntegerValue(this, "Poziom")
1111
1212 let balansUSDN = (assetBalance(this, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d') * 100)
1313
1414 let balansUSDT = (assetBalance(this, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y') * 100)
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)
29-func USDTnaUSDN () = {
29+func USDTnaUSDNnaUSDT () = {
3030 let oplata = fraction(i.payments[0].amount, 4, 10000)
3131 let kwotawymiany = fraction((i.payments[0].amount - oplata), 100, 1)
3232 if ((i.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'))
3333 then if ((kwotawymiany > (kwotarownowagi - balansUSDT)))
3434 then if ((balansUSDT >= kwotarownowagi))
3535 then {
3636 let nowypoziom = (poziom + kwotawymiany)
3737 let wyplata = mnozenie(baza, (ln(nowypoziom) - ln(poziom)))
3838 [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)]
3939 }
4040 else {
4141 let czesc1 = (kwotarownowagi - balansUSDT)
4242 let czesc2 = (kwotawymiany - czesc1)
4343 let nowypoziom = (((balansUSDT + kwotawymiany) + baza) - kwotarownowagi)
4444 let wyplata = ((mnozenie(baza, (ln(nowypoziom) - ln(baza))) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza))))
4545 [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)]
4646 }
4747 else {
4848 let wyplata = (poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza))))
4949 let nowypoziom = (poziom - wyplata)
5050 [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)]
5151 }
5252 else if ((i.payments[0].assetId == base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'))
5353 then if ((kwotawymiany > (kwotarownowagi - balansUSDN)))
5454 then if ((balansUSDN >= kwotarownowagi))
5555 then {
5656 let nowypoziom = (poziom + kwotawymiany)
5757 let wyplata = mnozenie(baza, (ln(nowypoziom) - ln(poziom)))
5858 [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)]
5959 }
6060 else {
6161 let czesc1 = (kwotarownowagi - balansUSDN)
6262 let czesc2 = (kwotawymiany - czesc1)
6363 let nowypoziom = (((balansUSDN + kwotawymiany) + baza) - kwotarownowagi)
6464 let wyplata = ((mnozenie(baza, (ln(nowypoziom) - ln(baza))) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza))))
6565 [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)]
6666 }
6767 else {
6868 let wyplata = (poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza))))
6969 let nowypoziom = (poziom - wyplata)
7070 [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)]
7171 }
7272 else throw("Nieobsługiwany asset")
7373 }
7474
7575
7676
7777 @Callable(i)
7878 func USDNnaUSDT () = {
7979 let kwotawymiany = i.payments[0].amount
8080 if ((kwotawymiany > (kwotarownowagi - balansUSDN)))
8181 then if ((balansUSDN >= kwotarownowagi))
8282 then {
8383 let nowypoziom = (poziom + kwotawymiany)
8484 let wyplata = mnozenie(baza, (ln(nowypoziom) - ln(poziom)))
8585 [IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Warunek", 11), IntegerEntry("USDT", fraction((balansUSDT - wyplata), 1, 100)), IntegerEntry("USDN", fraction((balansUSDN + kwotawymiany), 1, 100))]
8686 }
8787 else {
8888 let czesc1 = (kwotarownowagi - balansUSDN)
8989 let czesc2 = (kwotawymiany - czesc1)
9090 let nowypoziom = (((balansUSDN + kwotawymiany) + baza) - kwotarownowagi)
9191 let wyplata = ((mnozenie(baza, (ln(nowypoziom) - ln(baza))) + poziom) - dzielenie(poziom, exp(dzielenie(czesc1, baza))))
9292 [IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Warunek", 21), IntegerEntry("USDT", fraction((balansUSDT - wyplata), 1, 100)), IntegerEntry("USDN", fraction((balansUSDN + kwotawymiany), 1, 100))]
9393 }
9494 else {
9595 let wyplata = (poziom - dzielenie(poziom, exp(dzielenie(kwotawymiany, baza))))
9696 let nowypoziom = (poziom - wyplata)
9797 [ScriptTransfer(i.caller, (wyplata / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), IntegerEntry("Wyplata", fraction(wyplata, 1, 100)), IntegerEntry("Warunek", 31), IntegerEntry("USDT", fraction((balansUSDT - wyplata), 1, 100)), IntegerEntry("USDN", fraction((balansUSDN + kwotawymiany), 1, 100))]
9898 }
9999 }
100100
101101

github/deemru/w8io/026f985 
41.85 ms