Skip to content

Commit

Permalink
Actualize ParametersBatchUpdater.sol
Browse files Browse the repository at this point in the history
Signed-off-by: 34x4p08 <[email protected]>
  • Loading branch information
chainpioneer committed Apr 6, 2021
1 parent 07fb2ec commit 3ba8ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/ParametersBatchUpdater.sol
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ contract ParametersBatchUpdater is Auth {
function setOracleTypesToAssets(address[] calldata assets, uint[] calldata oracleTypes) public onlyManager {
require(oracleTypes.length == assets.length, "Unit Protocol: ARGUMENTS_LENGTH_MISMATCH");
for (uint i = 0; i < assets.length; i++) {
oracleRegistry.setOracleTypeToAsset(assets[i], oracleTypes[i]);
oracleRegistry.setOracleTypeForAsset(assets[i], oracleTypes[i]);
}
}

function setOracleTypesToAssetsBatch(address[][] calldata assets, uint[] calldata oracleTypes) public onlyManager {
require(oracleTypes.length == assets.length, "Unit Protocol: ARGUMENTS_LENGTH_MISMATCH");
for (uint i = 0; i < assets.length; i++) {
oracleRegistry.setOracleTypeToAssets(assets[i], oracleTypes[i]);
oracleRegistry.setOracleTypeForAssets(assets[i], oracleTypes[i]);
}
}

Expand Down

0 comments on commit 3ba8ac4

Please sign in to comment.