@@ -28,8 +28,8 @@ func Mint(
28
28
positionCaller std.Address,
29
29
) (string, string) { // uint256 x2
30
30
common.IsHalted()
31
- common.MustRegisteredToken (token0Path)
32
- common.MustRegisteredToken (token1Path)
31
+ common.MustRegistered (token0Path)
32
+ common.MustRegistered (token1Path)
33
33
34
34
if common.GetLimitCaller() {
35
35
caller := std.PrevRealm().Addr()
@@ -83,8 +83,8 @@ func Burn(
83
83
_liquidityAmount string, // uint128
84
84
) (string, string) { // uint256 x2
85
85
common.IsHalted()
86
- common.MustRegisteredToken (token0Path)
87
- common.MustRegisteredToken (token1Path)
86
+ common.MustRegistered (token0Path)
87
+ common.MustRegistered (token1Path)
88
88
89
89
caller := std.PrevRealm().Addr()
90
90
if common.GetLimitCaller() {
@@ -139,8 +139,8 @@ func Collect(
139
139
_amount1Requested string, // uint128
140
140
) (string, string) { // uint128 x2
141
141
common.IsHalted()
142
- common.MustRegisteredToken (token0Path)
143
- common.MustRegisteredToken (token1Path)
142
+ common.MustRegistered (token0Path)
143
+ common.MustRegistered (token1Path)
144
144
145
145
if common.GetLimitCaller() {
146
146
caller := std.PrevRealm().Addr()
@@ -207,8 +207,8 @@ func Swap(
207
207
payer std.Address, // router
208
208
) (string, string) { // int256 x2
209
209
common.IsHalted()
210
- common.MustRegisteredToken (token0Path)
211
- common.MustRegisteredToken (token1Path)
210
+ common.MustRegistered (token0Path)
211
+ common.MustRegistered (token1Path)
212
212
213
213
if common.GetLimitCaller() {
214
214
caller := std.PrevRealm().Addr()
@@ -552,8 +552,8 @@ func CollectProtocolByAdmin(
552
552
_amount0Requested string, // uint128
553
553
_amount1Requested string, // uint128
554
554
) (string, string) { // uint128 x2
555
- common.MustRegisteredToken (token0Path)
556
- common.MustRegisteredToken (token1Path)
555
+ common.MustRegistered (token0Path)
556
+ common.MustRegistered (token1Path)
557
557
558
558
caller := std.PrevRealm().Addr()
559
559
if err := common.AdminOnly(caller); err != nil {
@@ -597,8 +597,8 @@ func CollectProtocol(
597
597
_amount0Requested string, // uint128
598
598
_amount1Requested string, // uint128
599
599
) (string, string) { // uint128 x2
600
- common.MustRegisteredToken (token0Path)
601
- common.MustRegisteredToken (token1Path)
600
+ common.MustRegistered (token0Path)
601
+ common.MustRegistered (token1Path)
602
602
603
603
caller := std.PrevRealm().Addr()
604
604
if err := common.GovernanceOnly(caller); err != nil {
0 commit comments