Skip to content

Commit

Permalink
♻️ Renaming to zRex
Browse files Browse the repository at this point in the history
  • Loading branch information
0xZick committed Jun 6, 2023
1 parent 492d37e commit 1f6dbeb
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 20 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# <img src="logo.svg" alt="NFTxCards" height="40px">
🦖 Contracts
[![codecov](https://codecov.io/gh/Flash-Flow/core-contracts/branch/master/graph/badge.svg?token=94VIK7W295)](https://codecov.io/gh/Flash-Flow/core-contracts)

## Overview of the protocol
Expand Down Expand Up @@ -86,8 +86,8 @@ If the user does not have a token from the list, the flash flow protocol will be

### Configurator

- implements the configuration methods for the FlashFlow protocol.
- implements the configuration methods for the zRex protocol.

### License

Smart contracts for FlashFlow protocol are available under the [MIT License](LICENSE.md).
Smart contracts for zRex protocol are available under the [MIT License](LICENSE.md).
2 changes: 1 addition & 1 deletion contracts/ACLManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Errors } from './lib/Errors.sol';

/**
* @title ACLManager
* @author FlashFlow
* @author zRex
* @notice Access Control List Manager. Main registry of system roles and permissions.
*/
contract ACLManager is AccessControl, IACLManager {
Expand Down
2 changes: 1 addition & 1 deletion contracts/Account.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { IAddressesProvider } from './interfaces/IAddressesProvider.sol';

/**
* @title Account
* @author FlashFlow
* @author zRex
* @notice Contract used as implimentation user account.
* @dev Interaction with contracts is carried out by means of calling the proxy contract.
*/
Expand Down
2 changes: 1 addition & 1 deletion contracts/AddressesProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { IAddressesProvider } from './interfaces/IAddressesProvider.sol';

/**
* @title AddressesProvider
* @author FlashFlow
* @author zRex
* @notice Main registry of addresses part of or connected to the protocol
* @dev Acts as factory of proxies, so with right to change its implementations
*/
Expand Down
4 changes: 2 additions & 2 deletions contracts/Configurator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { Errors } from './lib/Errors.sol';

/**
* @title Configurator
* @author FlashFlow
* @dev Implements the configuration methods for the FlashFlow protocol
* @author zRex
* @dev Implements the configuration methods for the zRex protocol
*/
contract Configurator is VersionedInitializable, IConfigurator {
/* ============ Constants ============ */
Expand Down
2 changes: 1 addition & 1 deletion contracts/Connectors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Errors } from './lib/Errors.sol';

/**
* @title Connectors
* @author FlashFlow
* @author zRex
* @notice Contract to manage and store auxiliary contracts to work with the necessary protocols
*/
contract Connectors is IConnectors {
Expand Down
2 changes: 1 addition & 1 deletion contracts/Proxy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Errors } from './lib/Errors.sol';

/**
* @title Proxy
* @author FlashFlow
* @author zRex
* @notice Contract used as proxy for the user account.
* @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
* instruction `delegatecall`.
Expand Down
4 changes: 2 additions & 2 deletions contracts/Router.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import { IAddressesProvider } from './interfaces/IAddressesProvider.sol';

/**
* @title Router contract
* @author FlashFlow
* @notice Main point of interaction with an FlashFlow protocol
* @author zRex
* @notice Main point of interaction with an zRex protocol
* - Users can:
* # Open position
* # Close position
Expand Down
4 changes: 2 additions & 2 deletions contracts/lib/Errors.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ pragma solidity ^0.8.17;

/**
* @title Errors library
* @author FlashFlow
* @notice Defines the error messages emitted by the different contracts of the FlashFlow protocol
* @author zRex
* @notice Defines the error messages emitted by the different contracts of the zRex protocol
*/
library Errors {
// The caller of the function is not a account owner
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/PercentageMath.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.17;

/**
* @title PercentageMath library
* @author FlashFlow
* @author zRex
* @notice Provides functions to perform percentage calculations
* @dev Percentages are defined by default with 2 decimals of precision (100.00). The precision is indicated by PERCENTAGE_FACTOR
*/
Expand Down
12 changes: 9 additions & 3 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ const config = {
mnemonic: 'test test test test test test test test test test test junk',
},
},
bsc: {
url: 'https://bsc-dataseed.binance.org/',
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: { mnemonic: 'test test test test test test test test test test test junk' },
},
goerli: {
url: `https://goerli.infura.io/v3/${INFURA_TOKEN}`,
accounts: PRIVATE_KEY
Expand All @@ -70,10 +76,10 @@ const config = {
},
hardhat: {
blockGasLimit: 9500000,
chainId: 1,
chainId: 56,
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/qPC1XAgnhOiR3kuhw9DJ8g8WVLWs6R9Q`,
blockNumber: 17278900,
url: `https://bsc-mainnet.nodereal.io/v1/64a9df0874fb4a93b9d0a3849de012d3`,
blockNumber: 28718507,
},
initialBaseFeePerGas: 5,
},
Expand Down
2 changes: 1 addition & 1 deletion lib/openzeppelin-contracts
1 change: 1 addition & 0 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@prb/test/=lib/prb-test/src/
forge-std/=lib/forge-std/src/
src/=src/
contracts/=contracts/
solmate/=lib/solmate/src/
ds-test/=lib/forge-std/lib/ds-test/src/
@openzeppelin/=lib/openzeppelin-contracts/

0 comments on commit 1f6dbeb

Please sign in to comment.