Skip to content

Commit

Permalink
Merge tag '0.0.11' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
IhorSF committed Nov 14, 2023
2 parents 2984373 + b2d4146 commit 6a8b6f7
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.0.11] - 2023-11-14
### Fixed
- [Issue #220](https://github.com/silo-finance/silo-contracts-v2/issues/220)

## [0.0.10] - 2023-11-14
### Fixed
- [Issue #223](https://github.com/silo-finance/silo-contracts-v2/issues/223)
Expand Down
6 changes: 3 additions & 3 deletions ve-silo/contracts/gauges/ethereum/LiquidityGaugeFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ contract LiquidityGaugeFactory is BaseGaugeFactory {
*
* It is possible to deploy multiple gauges for a single pool.
* @param relativeWeightCap The relative weight cap for the created gauge
* @param erc20BalancesHandler The address of the pool for which to deploy a gauge
* @param hookReceiver The address of the Silo hook receiver
* @return The address of the deployed gauge
*/
function create(uint256 relativeWeightCap, address erc20BalancesHandler) external returns (address) {
function create(uint256 relativeWeightCap, address hookReceiver) external returns (address) {
address gauge = _create();
ISiloLiquidityGauge(gauge).initialize(relativeWeightCap, erc20BalancesHandler);
ISiloLiquidityGauge(gauge).initialize(relativeWeightCap, hookReceiver);
return gauge;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ pragma solidity >=0.5.0;
interface IChildChainGaugeFactory {
/// @notice Deploys a new gauge for a ERC-20 balances handler (Silo shares token)
/// It is possible to deploy multiple gauges for a single pool.
/// @param erc20BalancesHandler ERC-20 balances handler for which to deploy a gauge
/// @param hookReceiver The address of the Silo hook receiver
/// @return The address of the deployed gauge
function create(address erc20BalancesHandler) external returns (address);
function create(address hookReceiver) external returns (address);

/// @return the address of the implementation used for the gauge deployments.
function getGaugeImplementation() external view returns (address);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ interface ILiquidityGaugeFactory {
/// @notice Deploys a new gauge for a Silo shares token.
/// It is possible to deploy multiple gauges for a single Silo shares token.
/// @param relativeWeightCap The relative weight cap for the created gauge
/// @param erc20BalancesHandler The address of the Silo shares token for which to deploy a gauge
/// @param hookReceiver The address of the Silo hook receiver
/// @return gauge The address of the deployed gauge
function create(uint256 relativeWeightCap, address erc20BalancesHandler) external returns (address gauge);
function create(uint256 relativeWeightCap, address hookReceiver) external returns (address gauge);

/// @return the address of the implementation used for the gauge deployments.
function getGaugeImplementation() external view returns (address);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity >=0.5.0;
import {ILiquidityGaugeFactory} from "./ILiquidityGaugeFactory.sol";

interface ISiloChildChainGauge {
function initialize(address _erc20BalancesHandler, string memory _version) external;
function initialize(address _hookReceiver, string memory _version) external;
// solhint-disable func-name-mixedcase
// solhint-disable func-param-name-mixedcase
// solhint-disable var-name-mixedcase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pragma solidity >=0.5.0;

interface ISiloLiquidityGauge {
function initialize(uint256 relativeWeightCap, address erc20BalancesHandler) external;
function initialize(uint256 relativeWeightCap, address hookReceiver) external;
// solhint-disable func-name-mixedcase
// solhint-disable func-param-name-mixedcase
// solhint-disable var-name-mixedcase
Expand Down
6 changes: 3 additions & 3 deletions ve-silo/contracts/gauges/l2-common/ChildChainGaugeFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ contract ChildChainGaugeFactory is Version, BaseGaugeFactory {
* @notice Deploys a new gauge for a ERC-20 balances handler (Silo shares token)
*
* It is possible to deploy multiple gauges for a single pool.
* @param erc20BalancesHandler ERC-20 balances handler for which to deploy a gauge
* @param hookReceiver The address of the Silo hook receiver
* @return The address of the deployed gauge
*/
function create(address erc20BalancesHandler) external returns (address) { //solhint-disable-line ordering
function create(address hookReceiver) external returns (address) { //solhint-disable-line ordering
address gauge = _create();
IChildChainGauge(gauge).initialize(erc20BalancesHandler, getProductVersion());
IChildChainGauge(gauge).initialize(hookReceiver, getProductVersion());
return gauge;
}
}

0 comments on commit 6a8b6f7

Please sign in to comment.