Skip to content

Commit

Permalink
record deployments in factory
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrent committed Oct 22, 2024
1 parent 0a7d58d commit fe1d6db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contracts/facade/factories/DemurrageCollateralFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import "../../plugins/assets/DemurrageCollateral.sol";
contract DemurrageCollateralFactory {
event DemurrageCollateralDeployed(address indexed collateral);

mapping(address coll => uint192 feePerSecond) public demurrageDeployments;

bytes32 public constant USD = bytes32("USD");

function deployNewDemurrageCollateral(
Expand All @@ -20,6 +22,7 @@ contract DemurrageCollateralFactory {
}

newCollateral = address(new DemurrageCollateral(config, demurrageConfig));
demurrageDeployments[newCollateral] = demurrageConfig.fee;
emit DemurrageCollateralDeployed(newCollateral);
}
}

0 comments on commit fe1d6db

Please sign in to comment.