tx · 6EwzWpdk9fdbRgK4FXi7qoKqQ2vqmiGjqrnQnWvBL1vD

3N3y7DVmszkgFYMGoDtNnPjrNmLTf1rRUKJ:  -0.01990000 Waves

2020.10.20 20:26 [1229180] smart account 3N3y7DVmszkgFYMGoDtNnPjrNmLTf1rRUKJ > SELF 0.00000000 Waves

{ "type": 13, "id": "6EwzWpdk9fdbRgK4FXi7qoKqQ2vqmiGjqrnQnWvBL1vD", "fee": 1990000, "feeAssetId": null, "timestamp": 1603214767401, "version": 2, "chainId": 84, "sender": "3N3y7DVmszkgFYMGoDtNnPjrNmLTf1rRUKJ", "senderPublicKey": "EPmZCX2H4AC1hUmAFRUfWrhzXrNjf3wPaybY6jHZQphj", "proofs": [ "4Dpe4VbcARSG1tG4YS1okuS4iP13MVwKrKtHhjCpP1SARJGxaALyxc5n6hqShmC1avDzfPmeZEVGgRFiMQKHg1wt" ], "script": "base64:AAIDAAAAAAAAABEIARIAEgASABIAEgMKAQESAAAAAAAAAAAGAAAAAWkBAAAAFFJlYWRNYXhHb3Zlcm5EZXBvc2l0AAAAAAQAAAAOR292ZXJuVG9rZW5LZXkCAAAAFUdvdmVyblRva2VuTWF4RGVwb3NpdAQAAAAaTWF4R292ZXJuVG9rZW5EZXBvc2l0ZXJLZXkCAAAAGk1heEdvdmVyblRva2VuRGVwb3NpdGVyS2V5BAAAAAtTdGFrZWRUb2tlbgEAAAAgRcBshwjyRR7E4jbQIGP2jvCbtpj52Gvg2osXltv2/UMEAAAAC0dvdmVyblRva2VuAQAAACC8BnLNTH75zY/85pKTg3cOi9DRRgrZqRPS5vvLPGg8zQQAAAASVXNlclN0YWtlZFRva2VuS2V5CQABLAAAAAIJAAEsAAAAAgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzAgAAAAFfCQACWAAAAAEFAAAAC1N0YWtlZFRva2VuBAAAABJVc2VyR292ZXJuVG9rZW5LZXkJAAEsAAAAAgkAASwAAAACCQACWAAAAAEICAUAAAABaQ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QgIAMJAABmAAAAAgAAAAAAAAAAAQUAAAAVVXNlclN0YWtlZFRva2VuQW1vdW50CQAAAgAAAAEJAAEsAAAAAgIAAABSWW91IGhhdmUgdG8gU3Rha2UgU3Rha2VkVG9rZW4gdG8gY2xhaW0gcmV3YXJkIAogWW91ciBCYWxhbmNlIG9mIFN0YWtlZCBUb2tlbnMgaXM6IAkAAaQAAAABBQAAABVVc2VyU3Rha2VkVG9rZW5BbW91bnQDCQAAZgAAAAIFAAAAFVVzZXJHb3Zlcm5Ub2tlbkFtb3VudAAAAAAAAAAAZAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAC1ByaXplV2lubmVyBQAAAAtQcml6ZUFtb3VudAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAASRnVuZEJveFN0YWtlZFRva2VuAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAABJVc2VyR292ZXJuVG9rZW5LZXkAAAAAAAAAAAAFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAAC1ByaXplQW1vdW50BQAAAAtTdGFrZWRUb2tlbgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAGQFAAAAC0dvdmVyblRva2VuBQAAAANuaWwJAAACAAAAAQkAASwAAAACAgAAAEdZb3UgaGF2ZSB0byBkZXBvc2l0IDEwMCBHb3Zlcm5Ub2tlbiB0byBjbGFpbSBSZXdhcmQgCiBZb3VyIEJhbGFuY2UgaXM6IAkAAaQAAAABBQAAABVVc2VyR292ZXJuVG9rZW5BbW91bnQAAAAAzZ02Pg==", "height": 1229180, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DbKwXfPW86TEi4NZcCcQWZBrNyx9TvVZdzXWodhntc5q Next: BifEZ3bvvsKdJyUcLBNy8jtysSM6qePmySBxvaPfbvrf Diff:
OldNewDifferences
77 func ReadMaxGovernDeposit () = {
88 let GovernTokenKey = "GovernTokenMaxDeposit"
99 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))
1014 let Winner = getStringValue(this, MaxGovernTokenDepositerKey)
1115 let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
1216 case a: Int =>
1418 case _ =>
1519 0
1620 }
17- throw(((("Winner is.....: " + Winner) + "
18- Total GovernToken: ") + toString(MaxGovernTokenDeposit)))
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+Your Balance of GovernToken is: ") + toString(UserGovernTokenBalance)) + "
38+Your Balance of StakedToken is: ") + toString(UserStakedTokenBalance)))
1939 }
2040
2141
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func ReadMaxGovernDeposit () = {
88 let GovernTokenKey = "GovernTokenMaxDeposit"
99 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))
1014 let Winner = getStringValue(this, MaxGovernTokenDepositerKey)
1115 let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
1216 case a: Int =>
1317 a
1418 case _ =>
1519 0
1620 }
17- throw(((("Winner is.....: " + Winner) + "
18- Total GovernToken: ") + toString(MaxGovernTokenDeposit)))
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+Your Balance of GovernToken is: ") + toString(UserGovernTokenBalance)) + "
38+Your Balance of StakedToken is: ") + toString(UserStakedTokenBalance)))
1939 }
2040
2141
2242
2343 @Callable(i)
2444 func payYield () = {
2545 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
2646 let currentKey = toBase58String(i.caller.bytes)
2747 let currentAmount = match getInteger(this, currentKey) {
2848 case a: Int =>
2949 a
3050 case _ =>
3151 0
3252 }
3353 if ((currentAmount > 0))
3454 then {
3555 let GovernTokenAmount = assetBalance(this, GovernToken)
3656 if ((1 > GovernTokenAmount))
3757 then throw("No enough GovernToken In Contract")
3858 else ScriptResult(WriteSet([DataEntry(currentKey, 10)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken)]))
3959 }
4060 else throw("You need to deposit Collateral Token to receive Govern Token")
4161 }
4262
4363
4464
4565 @Callable(i)
4666 func Stake () = {
4767 let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
4868 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
4969 let pmt = extract(i.payment)
5070 if (if (isDefined(pmt.assetId))
5171 then (extract(pmt.assetId) == StakedToken)
5272 else false)
5373 then {
5474 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
5575 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
5676 let currentAmount = match getInteger(this, UserStakedTokenKey) {
5777 case a: Int =>
5878 a
5979 case _ =>
6080 0
6181 }
6282 let newAmount = (currentAmount + pmt.amount)
6383 let GovernTokenSmartContractBalance = assetBalance(this, GovernToken)
6484 if ((1 > GovernTokenSmartContractBalance))
6585 then throw("No enough GovernToken In Contract")
6686 else ScriptResult(WriteSet([DataEntry(UserGovernTokenKey, 10), DataEntry(UserStakedTokenKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 10, GovernToken)]))
6787 }
6888 else throw("Can deposit only StakeToken")
6989 }
7090
7191
7292
7393 @Callable(i)
7494 func DepositGovernToken () = {
7595 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
7696 let GovernTokenMaxDeposit = toBase58String(GovernToken)
7797 let pmt = extract(i.payment)
7898 if (if (isDefined(pmt.assetId))
7999 then (extract(pmt.assetId) == GovernToken)
80100 else false)
81101 then {
82102 let currentKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
83103 let currentAmount = match getInteger(this, currentKey) {
84104 case a: Int =>
85105 a
86106 case _ =>
87107 0
88108 }
89109 let CurrrentGovernTokenDeposit = (currentAmount + pmt.amount)
90110 let GovernTokenKey = "GovernTokenMaxDeposit"
91111 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
92112 let MaxGovernTokenDeposit = match getInteger(this, GovernTokenKey) {
93113 case a: Int =>
94114 a
95115 case _ =>
96116 0
97117 }
98118 if (if ((CurrrentGovernTokenDeposit > MaxGovernTokenDeposit))
99119 then true
100120 else (MaxGovernTokenDeposit == 0))
101121 then WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit), DataEntry(GovernTokenKey, CurrrentGovernTokenDeposit), DataEntry(MaxGovernTokenDepositerKey, currentKey)])
102122 else WriteSet([DataEntry(currentKey, CurrrentGovernTokenDeposit)])
103123 }
104124 else throw("Can deposit only Govern Token")
105125 }
106126
107127
108128
109129 @Callable(i)
110130 func WithdrawStakedFunds (amount) = {
111131 let CollateralToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
112132 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
113133 let currentKey = toBase58String(i.caller.bytes)
114134 let currentAmount = match getInteger(this, currentKey) {
115135 case a: Int =>
116136 a
117137 case _ =>
118138 0
119139 }
120140 let newAmount = (currentAmount - amount)
121141 if ((0 > amount))
122142 then throw("Can't withdraw negative amount")
123143 else if ((0 > newAmount))
124144 then throw("User cannot withdraw more than deposited funds")
125145 else {
126146 let GovernTokenAmount = assetBalance(this, GovernToken)
127147 if ((1 > GovernTokenAmount))
128148 then throw("No enough GovernToken In Contract")
129149 else ScriptResult(WriteSet([DataEntry(currentKey, 1), DataEntry(currentKey, newAmount)]), TransferSet([ScriptTransfer(i.caller, 1, GovernToken), ScriptTransfer(i.caller, amount, CollateralToken)]))
130150 }
131151 }
132152
133153
134154
135155 @Callable(i)
136156 func ClaimPrize () = {
137157 let StakedToken = base58'5hHK64aujiyn7cNrTBwhe5yJQuxs119KTPbE9nFjLoUN'
138158 let GovernToken = base58'DeyMK8USWs9ijzAXNy2azA3soajfrXjUNiJBdSJJsvMJ'
139159 let FundBoxAddress58 = base58'3NCMrhPAVqXgtLdpi2BhFWpJkMBUAFrozbD'
140160 let UserStakedTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(StakedToken))
141161 let UserGovernTokenKey = ((toBase58String(i.caller.bytes) + "_") + toBase58String(GovernToken))
142162 let FundBoxStakedToken = ((toBase58String(FundBoxAddress58) + "_") + toBase58String(StakedToken))
143163 let UserGovernTokenAmount = match getInteger(this, UserGovernTokenKey) {
144164 case a: Int =>
145165 a
146166 case _ =>
147167 0
148168 }
149169 let UserStakedTokenAmount = match getInteger(this, UserStakedTokenKey) {
150170 case a: Int =>
151171 a
152172 case _ =>
153173 0
154174 }
155175 let PrizeAmount = match getInteger(this, FundBoxStakedToken) {
156176 case a: Int =>
157177 a
158178 case _ =>
159179 0
160180 }
161181 let MaxGovernTokenDepositerKey = "MaxGovernTokenDepositerKey"
162182 let PrizeWinner = getStringValue(this, MaxGovernTokenDepositerKey)
163183 if ((PrizeAmount == 0))
164184 then throw("No prize to Claim")
165185 else if ((UserGovernTokenKey != PrizeWinner))
166186 then throw("You are not the winner hence cannot claim the reward ")
167187 else if ((1 > UserStakedTokenAmount))
168188 then throw(("You have to Stake StakedToken to claim reward
169189 Your Balance of Staked Tokens is: " + toString(UserStakedTokenAmount)))
170190 else if ((UserGovernTokenAmount > 100))
171191 then ScriptResult(WriteSet([DataEntry(PrizeWinner, PrizeAmount), DataEntry(FundBoxStakedToken, 0), DataEntry(UserGovernTokenKey, 0)]), TransferSet([ScriptTransfer(i.caller, PrizeAmount, StakedToken), ScriptTransfer(i.caller, 100, GovernToken)]))
172192 else throw(("You have to deposit 100 GovernToken to claim Reward
173193 Your Balance is: " + toString(UserGovernTokenAmount)))
174194 }
175195
176196

github/deemru/w8io/169f3d6 
29.84 ms