Skip to content

Commit 2973fce

Browse files
committed
chore: revert, minter does that already
1 parent 383b806 commit 2973fce

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

contracts/RootGaugeFactory.vy

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ interface RootGauge:
1616
def bridger() -> Bridger: view
1717
def initialize(_bridger: Bridger, _chain_id: uint256, _child: address): nonpayable
1818
def transmit_emissions(): nonpayable
19-
def user_checkpoint(_user: address) -> bool: nonpayable
2019

2120
interface CallProxy:
2221
def anyCall(
@@ -73,7 +72,7 @@ def __init__(_call_proxy: CallProxy, _owner: address):
7372

7473

7574
@external
76-
def transmit_emissions(_gauge: RootGauge, _checkpoint: bool=False):
75+
def transmit_emissions(_gauge: RootGauge):
7776
"""
7877
@notice Call `transmit_emissions` on a root gauge
7978
@dev Entrypoint to request emissions for a child gauge.
@@ -84,8 +83,6 @@ def transmit_emissions(_gauge: RootGauge, _checkpoint: bool=False):
8483
# for special bridges *cough cough Multichain, we can only do
8584
# one bridge per tx, therefore this will verify msg.sender in [tx.origin, self.call_proxy]
8685
assert _gauge.bridger().check(msg.sender)
87-
if _checkpoint:
88-
_gauge.user_checkpoint(empty(address))
8986
_gauge.transmit_emissions()
9087

9188

tests/root_gauge_factory/test_root_gauge_deploy.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,6 @@ def check(_addr: address) -> bool:
6666

6767
assert tx.subcalls[2]["function"] == "transmit_emissions()"
6868

69-
tx = root_gauge_factory.transmit_emissions(mock, True, {"from": alice})
70-
71-
assert tx.subcalls[2]["function"] == "user_checkpoint(address)"
72-
assert tx.subcalls[3]["function"] == "transmit_emissions()"
73-
7469

7570
def test_deploy_gauge(alice, chain, root_gauge_factory, child_gauge_factory, mock_bridger):
7671
tx = root_gauge_factory.deploy_child_gauge(chain.id, ETH_ADDRESS, 0x0, {"from": alice})

0 commit comments

Comments
 (0)