diff --git a/contracts/RootGaugeFactory.vy b/contracts/RootGaugeFactory.vy index 60d4ddb..635ea27 100644 --- a/contracts/RootGaugeFactory.vy +++ b/contracts/RootGaugeFactory.vy @@ -16,7 +16,6 @@ interface RootGauge: def bridger() -> Bridger: view def initialize(_bridger: Bridger, _chain_id: uint256, _child: address): nonpayable def transmit_emissions(): nonpayable - def user_checkpoint(_user: address) -> bool: nonpayable interface CallProxy: def anyCall( @@ -73,7 +72,7 @@ def __init__(_call_proxy: CallProxy, _owner: address): @external -def transmit_emissions(_gauge: RootGauge, _checkpoint: bool=False): +def transmit_emissions(_gauge: RootGauge): """ @notice Call `transmit_emissions` on a root gauge @dev Entrypoint to request emissions for a child gauge. @@ -84,8 +83,6 @@ def transmit_emissions(_gauge: RootGauge, _checkpoint: bool=False): # for special bridges *cough cough Multichain, we can only do # one bridge per tx, therefore this will verify msg.sender in [tx.origin, self.call_proxy] assert _gauge.bridger().check(msg.sender) - if _checkpoint: - _gauge.user_checkpoint(empty(address)) _gauge.transmit_emissions() diff --git a/tests/root_gauge_factory/test_root_gauge_deploy.py b/tests/root_gauge_factory/test_root_gauge_deploy.py index de391be..497f98c 100644 --- a/tests/root_gauge_factory/test_root_gauge_deploy.py +++ b/tests/root_gauge_factory/test_root_gauge_deploy.py @@ -66,11 +66,6 @@ def check(_addr: address) -> bool: assert tx.subcalls[2]["function"] == "transmit_emissions()" - tx = root_gauge_factory.transmit_emissions(mock, True, {"from": alice}) - - assert tx.subcalls[2]["function"] == "user_checkpoint(address)" - assert tx.subcalls[3]["function"] == "transmit_emissions()" - def test_deploy_gauge(alice, chain, root_gauge_factory, child_gauge_factory, mock_bridger): tx = root_gauge_factory.deploy_child_gauge(chain.id, ETH_ADDRESS, 0x0, {"from": alice})