tx · 61QND4MqLAiAHrXbbDCPFFLCS4iWSPDpgLNbtqKgTaVU

3MsNfeY3eRCNZXXyoFwekaSqsaTdrXKLqfF:  -0.01990000 Waves

2020.10.20 21:22 [1229240] smart account 3MsNfeY3eRCNZXXyoFwekaSqsaTdrXKLqfF > SELF 0.00000000 Waves

{ "type": 13, "id": "61QND4MqLAiAHrXbbDCPFFLCS4iWSPDpgLNbtqKgTaVU", "fee": 1990000, "feeAssetId": null, "timestamp": 1603218184067, "version": 2, "chainId": 84, "sender": "3MsNfeY3eRCNZXXyoFwekaSqsaTdrXKLqfF", "senderPublicKey": "9HTwTKruTGvJ6qj6TnQU71EtPTv5eQNsXyuFgW1x3JvZ", "proofs": [ "H4JYrhARYZcBBDB9Nsc94xbzVBY33bFZAcEjANNMpaFLggfi9u6Te3Ge8Amr4pBdJM3QWQKyp4nNnP5u82kB66J" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQAAAAZjY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VVXNlckdvdmVyblRva2VuQW1vdW50AAAAAAAAAABkCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAALUHJpemVXaW5uZXIFAAAAC1ByaXplQW1vdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJGdW5kQm94U3Rha2VkVG9rZW4AAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyR292ZXJuVG9rZW5LZXkAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAC1ByaXplQW1vdW50BQAAAAtTdGFrZWRUb2tlbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAGQFAAAAC0dvdmVyblRva2VuBQAAAANuaWwJAAACAAAAAQkAASwAAAACAgAAAEdZb3UgaGF2ZSB0byBkZXBvc2l0IDEwMCBHb3Zlcm5Ub2tlbiB0byBjbGFpbSBSZXdhcmQgCiBZb3VyIEJhbGFuY2UgaXM6IAkAAaQAAAABBQAAABVVc2VyR292ZXJuVG9rZW5BbW91bnQAAAAAtTLYwQ==", "height": 1229240, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 4qev3vWMjsBWQ1ZrXyfyF9qa6nKfhxCGQaTwxb4tiY3X Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func ReadMaxGovernDeposit () = {
8+ let GovernTokenKey = "GovernTokenMaxDeposit"
9+ let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
10+ let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
11+ let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
12+ let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
13+ let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
14+ let Winner = getStringValue(this, MaxGovernTokenDepositerKey)
15+ let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
16+ case a: Int =>
17+ a
18+ case _ =>
19+ 0
20+ }
21+ let ReadUserGovernTokenKey = getStringValue(this, UserGovernTokenKey)
22+ let UserGovernTokenBalance = match getInteger(this, ReadUserGovernTokenKey) {
23+ case a: Int =>
24+ a
25+ case _ =>
26+ 0
27+ }
28+ let ReadUserStakedTokenKey = getStringValue(this, UserStakedTokenKey)
29+ let UserStakedTokenBalance = match getInteger(this, ReadUserStakedTokenKey) {
30+ case a: Int =>
31+ a
32+ case _ =>
33+ 0
34+ }
35+ throw(((("Winner is.....: " + Winner) + "
36+Total GovernToken: ") + toString(MaxGovernTokenDeposit)))
37+ }
38+
39+
40+
41+@Callable(i)
42+func payYield () = {
43+ let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
44+ let currentKey = toBase58String(i.caller.bytes)
45+ let currentAmount = match getInteger(this, currentKey) {
46+ case a: Int =>
47+ a
48+ case _ =>
49+ 0
50+ }
51+ if ((currentAmount > 0))
52+ then {
53+ let GovernTokenAmount = assetBalance(this, GovernToken)
54+ if ((1 > GovernTokenAmount))
55+ then throw("No enough GovernToken In Contract")
56+ else ScriptResult(WriteSet([DataEntry(currentKey, 10)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken)]))
57+ }
58+ else throw("You need to deposit Collateral Token to receive Govern Token")
59+ }
60+
61+
62+
63+@Callable(i)
64+func Stake () = {
65+ let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
66+ let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
67+ let pmt = extract(i.payment)
68+ if (if (isDefined(pmt.assetId))
69+ then (extract(pmt.assetId) == StakedToken)
70+ else false)
71+ then {
72+ let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
73+ let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
74+ let currentAmount = match getInteger(this, UserStakedTokenKey) {
75+ case a: Int =>
76+ a
77+ case _ =>
78+ 0
79+ }
80+ let newAmount = (currentAmount + pmt.amount)
81+ let GovernTokenSmartContractBalance = assetBalance(this, GovernToken)
82+ if ((1 > GovernTokenSmartContractBalance))
83+ then throw("No enough GovernToken In Contract")
84+ else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 10), DataEntry(UserStakedTokenKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 10, GovernToken)]))
85+ }
86+ else throw("Can deposit only StakeToken")
87+ }
88+
89+
90+
91+@Callable(i)
92+func DepositGovernToken () = {
93+ let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
94+ let GovernTokenMaxDeposit = toBase58String(GovernToken)
95+ let pmt = extract(i.payment)
96+ if (if (isDefined(pmt.assetId))
97+ then (extract(pmt.assetId) == GovernToken)
98+ else false)
99+ then {
100+ let currentKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
101+ let currentAmount = match getInteger(this, currentKey) {
102+ case a: Int =>
103+ a
104+ case _ =>
105+ 0
106+ }
107+ let CurrrentGovernTokenDeposit = (currentAmount + pmt.amount)
108+ let GovernTokenKey = "GovernTokenMaxDeposit"
109+ let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
110+ let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
111+ case a: Int =>
112+ a
113+ case _ =>
114+ 0
115+ }
116+ if (if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit))
117+ then true
118+ else (MaxGovernTokenDeposit == 0))
119+ then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey)])
120+ else WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit)])
121+ }
122+ else throw("Can deposit only Govern Token")
123+ }
124+
125+
126+
127+@Callable(i)
128+func WithdrawStakedFunds (amount) = {
129+ let CollateralToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
130+ let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
131+ let currentKey = toBase58String(i.caller.bytes)
132+ let currentAmount = match getInteger(this, currentKey) {
133+ case a: Int =>
134+ a
135+ case _ =>
136+ 0
137+ }
138+ let newAmount = (currentAmount - amount)
139+ if ((0 > amount))
140+ then throw("Can't withdraw negative amount")
141+ else if ((0 > newAmount))
142+ then throw("User cannot withdraw more than deposited funds")
143+ else {
144+ let GovernTokenAmount = assetBalance(this, GovernToken)
145+ if ((1 > GovernTokenAmount))
146+ then throw("No enough GovernToken In Contract")
147+ else ScriptResult(WriteSet([DataEntry(currentKey, 1), DataEntry(currentKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken), ScriptTransfer(i.caller, amount, CollateralToken)]))
148+ }
149+ }
150+
151+
152+
153+@Callable(i)
154+func ClaimPrize () = {
155+ let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
156+ let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
157+ let FundBoxAddress58 = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
158+ let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
159+ let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
160+ let FundBoxStakedToken = ((toBase58String(FundBoxAddress58) + "_") + toBase58String(StakedToken))
161+ let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) {
162+ case a: Int =>
163+ a
164+ case _ =>
165+ 0
166+ }
167+ let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) {
168+ case a: Int =>
169+ a
170+ case _ =>
171+ 0
172+ }
173+ let PrizeAmount = match getInteger(this, FundBoxStakedToken) {
174+ case a: Int =>
175+ a
176+ case _ =>
177+ 0
178+ }
179+ let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
180+ let PrizeWinner = getStringValue(this, MaxGovernTokenDepositerKey)
181+ if ((PrizeAmount == 0))
182+ then throw("No prize to Claim")
183+ else if ((UserGovernTokenKey != PrizeWinner))
184+ then throw("You are not the winner hence cannot claim the reward ")
185+ else if ((1 > UserStakedTokenAmount))
186+ then throw(("You have to Stake StakedToken to claim reward
187+ Your Balance of Staked Tokens is: " + toString(UserStakedTokenAmount)))
188+ else if ((UserGovernTokenAmount > 100))
189+ then ScriptResult(WriteSet([DataEntry(PrizeWinner, PrizeAmount), DataEntry(FundBoxStakedToken, 0), DataEntry(MaxGovernTokenDepositerKey, 0), DataEntry(UserGovernTokenKey, 0)]), TransferSet([ScriptTransfer(i.caller, PrizeAmount, StakedToken), ScriptTransfer(i.caller, 100, GovernToken)]))
190+ else throw(("You have to deposit 100 GovernToken to claim Reward
191+ Your Balance is: " + toString(UserGovernTokenAmount)))
192+ }
193+
194+

github/deemru/w8io/026f985 
19.28 ms