15 | | - | func convertToUSDN () = if ((i.caller != adminAddress)) |
---|
16 | | - | then throw("Access Denied") |
---|
17 | | - | else { |
---|
18 | | - | let convert = invoke(USDNVesting, "convertToUSDN", nil, nil) |
---|
19 | | - | if ((convert == convert)) |
---|
20 | | - | then nil |
---|
21 | | - | else throw("Strict value is not equal to itself.") |
---|
22 | | - | } |
---|
| 9 | + | func w () = { |
---|
| 10 | + | let Init = assetBalance(this, a) |
---|
| 11 | + | if ((Init == Init)) |
---|
| 12 | + | then { |
---|
| 13 | + | let wdr = invoke(addressFromStringValue("3PCbvPVQfSvVu88ip8Fm5YjwJhjEYk1Txhk"), "withdrawVestedAllUSDN", [false, true], nil) |
---|
| 14 | + | if ((wdr == wdr)) |
---|
| 15 | + | then { |
---|
| 16 | + | let Final = assetBalance(this, a) |
---|
| 17 | + | if ((Final == Final)) |
---|
| 18 | + | then [ScriptTransfer(dlgt, Final, a)] |
---|
| 19 | + | else throw("Strict value is not equal to itself.") |
---|
| 20 | + | } |
---|
| 21 | + | else throw("Strict value is not equal to itself.") |
---|
| 22 | + | } |
---|
| 23 | + | else throw("Strict value is not equal to itself.") |
---|
| 24 | + | } |
---|
27 | | - | func withdrawVestedUSDN () = if ((i.caller != adminAddress)) |
---|
28 | | - | then throw("Access Denied") |
---|
29 | | - | else { |
---|
30 | | - | let withdrawVested = invoke(USDNVesting, "withdrawVestedAllUSDN", [false, true], nil) |
---|
31 | | - | if ((withdrawVested == withdrawVested)) |
---|
32 | | - | then nil |
---|
33 | | - | else throw("Strict value is not equal to itself.") |
---|
34 | | - | } |
---|
35 | | - | |
---|
36 | | - | |
---|
37 | | - | |
---|
38 | | - | @Callable(i) |
---|
39 | | - | func withdrawVestedUSDNtoDelegate () = if ((i.caller != adminAddress)) |
---|
40 | | - | then throw("Access Denied") |
---|
41 | | - | else { |
---|
42 | | - | let USDNInitial = assetBalance(this, USDN) |
---|
43 | | - | if ((USDNInitial == USDNInitial)) |
---|
44 | | - | then { |
---|
45 | | - | let withdrawVested = invoke(USDNVesting, "withdrawVestedAllUSDN", [false, true], nil) |
---|
46 | | - | if ((withdrawVested == withdrawVested)) |
---|
47 | | - | then { |
---|
48 | | - | let USDNFinal = assetBalance(this, USDN) |
---|
49 | | - | if ((USDNFinal == USDNFinal)) |
---|
50 | | - | then [ScriptTransfer(delegateAddress, USDNFinal, USDN)] |
---|
51 | | - | else throw("Strict value is not equal to itself.") |
---|
52 | | - | } |
---|
53 | | - | else throw("Strict value is not equal to itself.") |
---|
54 | | - | } |
---|
55 | | - | else throw("Strict value is not equal to itself.") |
---|
56 | | - | } |
---|
57 | | - | |
---|
58 | | - | |
---|
59 | | - | |
---|
60 | | - | @Callable(i) |
---|
61 | | - | func withdrawUSDNtoDelegate () = if ((i.caller != adminAddress)) |
---|
62 | | - | then throw("Access Denied") |
---|
63 | | - | else { |
---|
64 | | - | let USDNFinal = assetBalance(this, USDN) |
---|
65 | | - | if ((USDNFinal == USDNFinal)) |
---|
66 | | - | then [ScriptTransfer(delegateAddress, USDNFinal, USDN)] |
---|
67 | | - | else throw("Strict value is not equal to itself.") |
---|
68 | | - | } |
---|
69 | | - | |
---|
70 | | - | |
---|
71 | | - | |
---|
72 | | - | @Callable(i) |
---|
73 | | - | func ClaimRewardsUSDN () = if ((i.caller != adminAddress)) |
---|
74 | | - | then throw("Access Denied") |
---|
75 | | - | else { |
---|
76 | | - | let USDNReward = invoke(USDNRewards, "claimRewards", nil, nil) |
---|
77 | | - | if ((USDNReward == USDNReward)) |
---|
78 | | - | then nil |
---|
79 | | - | else throw("Strict value is not equal to itself.") |
---|
80 | | - | } |
---|
| 29 | + | func cl () = { |
---|
| 30 | + | let rwd = invoke(addressFromStringValue("3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd"), "claimRewards", nil, nil) |
---|
| 31 | + | if ((rwd == rwd)) |
---|
| 32 | + | then nil |
---|
| 33 | + | else throw("Strict value is not equal to itself.") |
---|
| 34 | + | } |
---|