function setZapConfig(
    uint256 _idx,
    address _sett,
    address _token,
    address _curvePool,
    address _withdrawToken,
    int128 _withdrawTokenIndex
) external {
    _onlyGovernance();

    require(_sett != address(0));
    require(_token != address(0));
    require(
        _withdrawToken == address(WBTC) || _withdrawToken == address(RENBTC)
    );

    zapConfigs[_idx].sett = ISett(_sett);
    zapConfigs[_idx].token = IERC20Upgradeable(_token);
    zapConfigs[_idx].curvePool = ICurveFi(_curvePool);
    zapConfigs[_idx].withdrawToken = IERC20Upgradeable(_withdrawToken);
    zapConfigs[_idx].withdrawTokenIndex = _withdrawTokenIndex;
}
function setZapConfig(
    uint256 _idx,
    address _sett,
    address _token,
    address _curvePool,
    address _withdrawToken,
    int128 _withdrawTokenIndex
) external {
    _onlyGovernance();

    require(_sett != address(0));
    require(_token != address(0));
    require(
        _withdrawToken == address(WBTC) || _withdrawToken == address(RENBTC)
    );

    if (zapConfigs[_idx].curvePool != _curvePool && _curvePool != address(0)) {
        IERC20Upgradeable(_token).safeApprove(
            _curvePool,
            type(uint256).max
        );
    }

    zapConfigs[_idx].sett = ISett(_sett);
    zapConfigs[_idx].token = IERC20Upgradeable(_token);
    zapConfigs[_idx].curvePool = ICurveFi(_curvePool);
    zapConfigs[_idx].withdrawToken = IERC20Upgradeable(_withdrawToken);
    zapConfigs[_idx].withdrawTokenIndex = _withdrawTokenIndex;
}
