File tree 1 file changed +9
-7
lines changed
network-owned-liquidity/src/main/java/icon/inflation/score/nol
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,15 @@ public class NetworkOwnedLiquidity implements INetworkOwnedLiquidity {
46
46
public static final BigInteger DEFAULT_SWAP_REWARDS = BigInteger .valueOf (100 ); // 1%
47
47
public static final BigInteger DEFAULT_LP_SLIPPAGE = BigInteger .valueOf (100 ); // 1%
48
48
49
- public NetworkOwnedLiquidity (Address _balancedDex , Address _balancedOracle ) {
50
- balancedDex .set (_balancedDex );
51
- balancedOracle .set (_balancedOracle );
52
-
53
- orderPeriod .set (DEFAULT_ORDER_PERIOD );
54
- swapReward .set (DEFAULT_SWAP_REWARDS );
55
- lPSlippage .set (DEFAULT_LP_SLIPPAGE );
49
+ public NetworkOwnedLiquidity (@ Optional Address _balancedDex , @ Optional Address _balancedOracle ) {
50
+ if (balancedDex .get () == null ) {
51
+ balancedDex .set (_balancedDex );
52
+ balancedOracle .set (_balancedOracle );
53
+
54
+ orderPeriod .set (DEFAULT_ORDER_PERIOD );
55
+ swapReward .set (DEFAULT_SWAP_REWARDS );
56
+ lPSlippage .set (DEFAULT_LP_SLIPPAGE );
57
+ }
56
58
}
57
59
58
60
@ EventLog (indexed = 1 )
You can’t perform that action at this time.
0 commit comments