Skip to content

Commit

Permalink
Merge branch 'develop' into update-to-oz-v5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
David405 authored Apr 15, 2024
2 parents d9242af + ae0d6fe commit e78fca6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions contracts/Oracle.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.20;

import "@openzeppelin/contracts/access/AccessControl.sol";
Expand Down
12 changes: 3 additions & 9 deletions contracts/Vault.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
// SPDX-License-Identifier: MIT

/**
* NOTE
* Always do additions first
* Check if the substracting value is greater than or less than the added values i.e check for a negative result
*/

pragma solidity ^0.8.20;

import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol";
Expand Down Expand Up @@ -112,14 +106,14 @@ contract Vault is
address _oracle,
IERC20 _collateral,
address _zusd
) external reinitializer(3) {
) external initializer {
TxPaused = false;
Oracle = _oracle;
collateral = _collateral;
zUSD = _zusd;
COLLATERIZATION_RATIO_THRESHOLD = 15 * 1e2;
LIQUIDATION_REWARD = 15;
treasuryWallet = 0xd7FA3f5f3f857FEDE4eD6E396C0afE2C5716055a;
treasuryWallet = _admin;
swapFee = WadRayMath.wadDiv(8, 1000);
globalMintersPercentOfSwapFee = WadRayMath.wadDiv(1, 2);
treasuryPercentOfSwapFee = WadRayMath.wadDiv(1, 2);
Expand Down Expand Up @@ -951,5 +945,5 @@ contract Vault is
return true;
}

uint256[48] private __gap;
uint256[50] private __gap;
}
3 changes: 2 additions & 1 deletion contracts/interfaces/BakiOracleInterface.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.20;
/**
* @dev Oracle interface
Expand All @@ -8,12 +9,12 @@ interface BakiOracleInterface {
* @dev get each exRates
*/


function getZTokenUSDValue(string calldata _name) external view returns(uint256);

function getZToken(string calldata _name) external view returns(address);

function getZTokenList() external view returns(string[] memory);

function collateralUSD() external view returns (uint256);

}

0 comments on commit e78fca6

Please sign in to comment.