tx · 9V4S7uaPYQ8bpaBxRyRMEUdxWLMjAU6Epe3DSZgC8Gr2

3N6RmPRrsF5PPv48u6RPC64RuW3EyQGgNhd:  -0.01400000 Waves

2020.10.27 11:29 [1238755] smart account 3N6RmPRrsF5PPv48u6RPC64RuW3EyQGgNhd > SELF 0.00000000 Waves

{ "type": 13, "id": "9V4S7uaPYQ8bpaBxRyRMEUdxWLMjAU6Epe3DSZgC8Gr2", "fee": 1400000, "feeAssetId": null, "timestamp": 1603787436917, "version": 1, "sender": "3N6RmPRrsF5PPv48u6RPC64RuW3EyQGgNhd", "senderPublicKey": "DNQoUXh3GQY7nCmzoysqo88Q77U2EyQsG7WLyEmWyCYs", "proofs": [ "43JSaqCzaqT8GdKaG3sVhLRC3aCUH4NXxA7eDu3YB9tZ8doousDy64yTQwqyoPBQkYPTKdXoUjepP92neL41aAx3" ], "script": "base64:AAIEAAAAAAAAAA8IAhIAEgASABIAEgMKAQEAAAARAAAAABFnb3Zlcm5hbmNlQWRkcmVzcwkBAAAAB0FkZHJlc3MAAAABAQAAABoBUxOlRfV53O7UL6ST3Xinja4q82stIcT/pgAAAAAISWRUb2tlbkEJAQAAABFAZXh0ck5hdGl2ZSgxMDUzKQAAAAIFAAAABHRoaXMCAAAADWFzc2V0SWRUb2tlbkEAAAAACElkVG9rZW5CCQEAAAARQGV4dHJOYXRpdmUoMTA1MykAAAACBQAAAAR0aGlzAgAAAA1hc3NldElkVG9rZW5CAAAAAAxhbW91bnRUb2tlbkIJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMCAAAADGFtb3VudFRva2VuQgAAAAAMYW1vdW50VG9rZW5BCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAxhbW91bnRUb2tlbkEAAAAADElkVG9rZW5TaGFyZQkBAAAAEUBleHRyTmF0aXZlKDEwNTMpAAAAAgUAAAAEdGhpcwIAAAAOc2hhcmVfdG9rZW5faWQAAAAAEHRva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rZW5CCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAAxhbW91bnRUb2tlbkEJAABkAAAAAgUAAAAMYW1vdW50VG9rZW5BBQAAABJ0b2tlblJlY2VpdmVBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADGFtb3VudFRva2VuQgkAAGUAAAACCQAAZQAAAAIFAAAADGFtb3VudFRva2VuQgUAAAAWdG9rZW5TZW5kQW1vdW50V2l0aEZlZQUAAAATdG9rZW5TZW5kR292ZXJuYW5jZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAOZXhjaGFuZ2VfY291bnQJAABkAAAAAgUAAAAFY291bnQAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAACmNvbnRleHRPYmoAAAAGY2FsbGVyBQAAABZ0b2tlblNlbmRBbW91bnRXaXRoRmVlBQAAAAthc3NldElkU2VuZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAABFnb3Zlcm5hbmNlQWRkcmVzcwUAAAATdG9rZW5TZW5kR292ZXJuYW5jZQUAAAALYXNzZXRJZFNlbmQFAAAAA25pbAkAAAIAAAABAgAAABRBc3NldCBpcyBub3QgYWxsb3dlZAAAAAAzbdVR", "chainId": 84, "height": 1238755, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: crwZWnMczdDtwGxREDo21QJeqwCn9w1iffmL8T2MtA3 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let governanceAddress = Address(base58'3MSNMcqyweiM9cWpvf4Fn8GAWeuPstxj2hK')
5+
6+let IdTokenA = getStringValue(this, "assetIdTokenA")
7+
8+let IdTokenB = getStringValue(this, "assetIdTokenB")
9+
10+let amountTokenB = getIntegerValue(this, "amountTokenB")
11+
12+let amountTokenA = getIntegerValue(this, "amountTokenA")
13+
14+let IdTokenShare = getStringValue(this, "share_token_id")
15+
16+let tokenShareSupply = getIntegerValue(this, "share_token_supply")
17+
18+let comission = 300
19+
20+let commisionGovernance = 200
21+
22+let comissionScaleDelimiter = 1000000
23+
24+let version = "1.0.0"
25+
26+let scaleValue8 = 100000000
27+
28+let scaleValue8Digits = 8
29+
30+func assetId (asset) = if ((asset == "WAVES"))
31+ then unit
32+ else fromBase58String(asset)
33+
34+
35+let assetIdTokenA = assetId(IdTokenA)
36+
37+let assetIdTokenB = assetId(IdTokenB)
38+
39+let assetIdTokenShare = fromBase58String(IdTokenShare)
40+
41+@Callable(contextObj)
42+func fund () = {
43+ let paymentA = value(contextObj.payments[0])
44+ let paymentB = value(contextObj.payments[1])
45+ let assetIdReceivedA = paymentA.assetId
46+ let tokenReceiveAmountA = paymentA.amount
47+ let assetIdReceivedB = paymentB.assetId
48+ let tokenReceiveAmountB = paymentB.amount
49+ let digitTokenA = match assetIdReceivedA {
50+ case p: Unit =>
51+ 8
52+ case p: ByteVector =>
53+ value(assetInfo(p)).decimals
54+ case _ =>
55+ throw("Match error")
56+ }
57+ let digitTokenB = match assetIdReceivedB {
58+ case p: Unit =>
59+ 8
60+ case p: ByteVector =>
61+ value(assetInfo(p)).decimals
62+ case _ =>
63+ throw("Match error")
64+ }
65+ if (isDefined(getBoolean(this, "status")))
66+ then throw("already active")
67+ else {
68+ let shareTokenName = ("ShareT_" + takeRight(toString(this), 5))
69+ let digitsInShareToken = ((digitTokenA + digitTokenB) / 2)
70+ let shareTokenInitialAmount = fraction(pow(tokenReceiveAmountA, digitTokenA, 5, 1, digitTokenA, HALFDOWN), pow(tokenReceiveAmountB, digitTokenB, 5, 1, digitTokenB, HALFDOWN), pow(10, 0, digitsInShareToken, 0, 0, HALFDOWN))
71+ let shareTokenAssetId = calculateAssetId(Issue(shareTokenName, shareTokenName, shareTokenInitialAmount, digitsInShareToken, true))
72+ let assetIdTokenStringA = match assetIdReceivedA {
73+ case t: Unit =>
74+ "WAVES"
75+ case t: ByteVector =>
76+ toBase58String(value(assetIdReceivedA))
77+ case _ =>
78+ throw("Match error")
79+ }
80+ let assetIdTokenStringB = match assetIdReceivedB {
81+ case t: Unit =>
82+ "WAVES"
83+ case t: ByteVector =>
84+ toBase58String(value(assetIdReceivedB))
85+ case _ =>
86+ throw("Match error")
87+ }
88+[IntegerEntry("amountTokenA", tokenReceiveAmountA), IntegerEntry("amountTokenB", tokenReceiveAmountB), StringEntry("assetIdTokenA", assetIdTokenStringA), StringEntry("assetIdTokenB", assetIdTokenStringB), IntegerEntry("exchange_count", 0), BooleanEntry("status", true), IntegerEntry("comission", comission), IntegerEntry("comissionScaleDelimiter", comissionScaleDelimiter), StringEntry("version", version), Issue(shareTokenName, shareTokenName, shareTokenInitialAmount, digitsInShareToken, true), ScriptTransfer(contextObj.caller, shareTokenInitialAmount, shareTokenAssetId), StringEntry("share_token_id", toBase58String(shareTokenAssetId)), IntegerEntry("share_token_supply", shareTokenInitialAmount)]
89+ }
90+ }
91+
92+
93+
94+@Callable(contextObj)
95+func replenishment () = {
96+ let paymentA = value(contextObj.payments[0])
97+ let paymentB = value(contextObj.payments[1])
98+ let assetIdReceivedA = paymentA.assetId
99+ let tokenReceiveAmountA = paymentA.amount
100+ let assetIdReceivedB = paymentB.assetId
101+ let tokenReceiveAmountB = paymentB.amount
102+ let dAppTokensAmountA = getIntegerValue(this, "amountTokenA")
103+ let dAppTokensAmountB = getIntegerValue(this, "amountTokenB")
104+ if (if ((assetIdReceivedA != assetIdTokenA))
105+ then true
106+ else (assetIdReceivedB != assetIdTokenB))
107+ then throw("incorrect assets")
108+ else {
109+ let tokenRatio = (fraction(tokenReceiveAmountA, (1000000000000 * 100000), dAppTokensAmountA) / fraction(dAppTokensAmountB, 1000000000000, tokenReceiveAmountB))
110+ if (!(if ((tokenRatio > 99990))
111+ then (100010 > tokenRatio)
112+ else false))
113+ then throw("incorrect assets amount")
114+ else {
115+ let shareTokenToPayAmount = fraction(tokenReceiveAmountA, tokenShareSupply, dAppTokensAmountA)
116+ if ((shareTokenToPayAmount == 0))
117+ then throw("you try replansish with very small amount")
118+ else [Reissue(assetIdTokenShare, shareTokenToPayAmount, true), ScriptTransfer(contextObj.caller, shareTokenToPayAmount, assetIdTokenShare), IntegerEntry("share_token_supply", (tokenShareSupply + shareTokenToPayAmount)), IntegerEntry("amountTokenA", (dAppTokensAmountA + tokenReceiveAmountA)), IntegerEntry("amountTokenB", (dAppTokensAmountB + tokenReceiveAmountB))]
119+ }
120+ }
121+ }
122+
123+
124+
125+@Callable(contextObj)
126+func replanishmentWithOneToken () = {
127+ let payment = value(contextObj.payments[0])
128+ let assetIdReceived = payment.assetId
129+ let tokenReceiveAmount = payment.amount
130+ if ((assetIdReceived == assetIdTokenA))
131+ then {
132+ let newAmountTokenA = (amountTokenA + tokenReceiveAmount)
133+ let priceAtoBwith8digits = fraction(newAmountTokenA, scaleValue8, amountTokenB)
134+ let tokenAmountBNewPriceOldInvariant = pow(fraction(amountTokenA, amountTokenB, priceAtoBwith8digits), 0, 5, 1, 0, HALFDOWN)
135+ let newTokenShareSupply = fraction(amountTokenB, tokenShareSupply, tokenAmountBNewPriceOldInvariant)
136+ let shareTokenToPayAmount = (newTokenShareSupply - tokenShareSupply)
137+[Reissue(assetIdTokenShare, shareTokenToPayAmount, true), ScriptTransfer(contextObj.caller, shareTokenToPayAmount, assetIdTokenShare), IntegerEntry("share_token_supply", (tokenShareSupply + shareTokenToPayAmount)), IntegerEntry("amountTokenA", newAmountTokenA)]
138+ }
139+ else if ((assetIdReceived == assetIdTokenB))
140+ then {
141+ let newAmountTokenB = (amountTokenB + tokenReceiveAmount)
142+ let priceAtoBwith8digits = fraction(amountTokenA, scaleValue8, newAmountTokenB)
143+ let tokenAmountBNewPriceOldInvariant = pow(fraction(amountTokenA, amountTokenB, priceAtoBwith8digits), 0, 5, 1, 0, HALFDOWN)
144+ let newTokenShareSupply = fraction(amountTokenB, tokenShareSupply, tokenAmountBNewPriceOldInvariant)
145+ let shareTokenToPayAmount = (newTokenShareSupply - tokenShareSupply)
146+[Reissue(assetIdTokenShare, shareTokenToPayAmount, true), ScriptTransfer(contextObj.caller, shareTokenToPayAmount, assetIdTokenShare), IntegerEntry("share_token_supply", (tokenShareSupply + shareTokenToPayAmount)), IntegerEntry("amountTokenB", newAmountTokenB)]
147+ }
148+ else throw("incorrect assets in payment")
149+ }
150+
151+
152+
153+@Callable(contextObj)
154+func withdraw () = {
155+ let dAppTokensAmountA = getIntegerValue(this, "amountTokenA")
156+ let dAppTokensAmountB = getIntegerValue(this, "amountTokenB")
157+ let payment = value(contextObj.payments[0])
158+ let assetIdReceived = payment.assetId
159+ let tokenReceiveAmount = payment.amount
160+ if ((assetIdTokenShare != assetIdReceived))
161+ then throw(("you need to attach share token for this dApp " + toBase58String(assetIdTokenShare)))
162+ else {
163+ let tokensToPayA = fraction(tokenReceiveAmount, dAppTokensAmountA, tokenShareSupply)
164+ let tokensToPayB = fraction(tokenReceiveAmount, dAppTokensAmountB, tokenShareSupply)
165+ if ((getBooleanValue(this, "status") != true))
166+ then throw("status: Unactive")
167+ else [ScriptTransfer(contextObj.caller, tokensToPayA, assetIdTokenA), ScriptTransfer(contextObj.caller, tokensToPayB, assetIdTokenB), IntegerEntry("amountTokenA", (dAppTokensAmountA - tokensToPayA)), IntegerEntry("amountTokenB", (dAppTokensAmountB - tokensToPayB)), IntegerEntry("share_token_supply", (tokenShareSupply - tokenReceiveAmount)), Burn(assetIdTokenShare, tokenReceiveAmount)]
168+ }
169+ }
170+
171+
172+
173+@Callable(contextObj)
174+func exchanger (minTokenRecieve) = {
175+ let payment = value(contextObj.payments[0])
176+ let assetIdReceived = payment.assetId
177+ let tokenReceiveAmount = payment.amount
178+ let count = value(getInteger(this, "exchange_count"))
179+ if ((getBooleanValue(this, "status") != true))
180+ then throw("status: Unactive")
181+ else if ((assetIdReceived == assetIdTokenB))
182+ then {
183+ let tokenSendAmountWithoutFee = fraction(amountTokenA, tokenReceiveAmount, (tokenReceiveAmount + amountTokenB))
184+ let tokenSendAmountWithFee = fraction(tokenSendAmountWithoutFee, (comissionScaleDelimiter - comission), comissionScaleDelimiter)
185+ let tokenSendGovernance = fraction(tokenSendAmountWithoutFee, commisionGovernance, comissionScaleDelimiter)
186+ if ((minTokenRecieve > tokenSendAmountWithFee))
187+ then throw("Price has changed dramaticaly. Receiving token amount don't satisfy specified price level")
188+ else {
189+ let assetIdSend = assetIdTokenA
190+[IntegerEntry("amountTokenA", ((amountTokenA - tokenSendAmountWithFee) - tokenSendGovernance)), IntegerEntry("amountTokenB", (amountTokenB + tokenReceiveAmount)), IntegerEntry("exchange_count", (count + 1)), ScriptTransfer(contextObj.caller, tokenSendAmountWithFee, assetIdSend), ScriptTransfer(governanceAddress, tokenSendGovernance, assetIdSend)]
191+ }
192+ }
193+ else if ((assetIdReceived == assetIdTokenA))
194+ then {
195+ let tokenSendAmountWithoutFee = fraction(amountTokenB, tokenReceiveAmount, (tokenReceiveAmount + amountTokenA))
196+ let tokenSendAmountWithFee = fraction(tokenSendAmountWithoutFee, (comissionScaleDelimiter - comission), comissionScaleDelimiter)
197+ let tokenSendGovernance = fraction(tokenSendAmountWithoutFee, commisionGovernance, comissionScaleDelimiter)
198+ if ((minTokenRecieve > tokenSendAmountWithFee))
199+ then throw("Price has changed dramaticaly. Receiving token amount don't satisfy specified price level")
200+ else {
201+ let assetIdSend = assetIdTokenB
202+[IntegerEntry("amountTokenA", (amountTokenA + tokenReceiveAmount)), IntegerEntry("amountTokenB", ((amountTokenB - tokenSendAmountWithFee) - tokenSendGovernance)), IntegerEntry("exchange_count", (count + 1)), ScriptTransfer(contextObj.caller, tokenSendAmountWithFee, assetIdSend), ScriptTransfer(governanceAddress, tokenSendGovernance, assetIdSend)]
203+ }
204+ }
205+ else throw("Asset is not allowed")
206+ }
207+
208+

github/deemru/w8io/026f985 
20.17 ms