Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0.0 rc3 #837

Merged
merged 152 commits into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from 90 commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
8cf53d0
add new config value
julianmrodri May 25, 2023
18f0f6f
basket handler minor tweaks
julianmrodri May 25, 2023
d79426e
new mockups for coverage
julianmrodri May 25, 2023
e58189c
facade tests coverage
julianmrodri May 25, 2023
9576c0d
furnace coverage
julianmrodri May 25, 2023
5347e43
basket handling coverage
julianmrodri May 25, 2023
349f4e4
revenues coverage
julianmrodri May 25, 2023
92fe1cf
strsr coverage
julianmrodri May 25, 2023
3f8e6ac
fix typo
julianmrodri May 25, 2023
0fbc351
format
julianmrodri May 25, 2023
bb296b3
untestable comment
julianmrodri May 25, 2023
bd4e18d
additional tests and checks
julianmrodri May 25, 2023
77b4d32
fix p0 strsr
julianmrodri May 26, 2023
8c3e924
add new rtoken test
julianmrodri May 26, 2023
0d2f652
pull PoolTokens out into a new curve folder
tbrent May 31, 2023
12d1979
generalize Cvx*Collateral contracts to Crv/Cvx
tbrent Jun 1, 2023
8577a29
simplify tree structure
tbrent Jun 1, 2023
302b68f
CrvVault.sol
tbrent Jun 1, 2023
2adba8d
init CvxStableTestSuite.ts generic-style
tbrent Jun 1, 2023
be7f923
port CvxStableMetapoolCollateral.test.ts to generic style
tbrent Jun 2, 2023
293bb9b
3/4 passing; only RTokenMetapool to go...
tbrent Jun 4, 2023
1133673
4/4 passing
tbrent Jun 4, 2023
d70131a
name tests clearly
tbrent Jun 4, 2023
6263f3c
lint clean
tbrent Jun 5, 2023
8908132
update deployment scripts
tbrent Jun 5, 2023
6ab03ac
Crv*.sol -> Curve*.sol to reserve crv/cvx prefixes for parametrizations
tbrent Jun 5, 2023
53bedf7
static aToken refactor and tests
julianmrodri Jun 5, 2023
50fbcf6
compoundv3 coverage
julianmrodri Jun 5, 2023
bf28d0c
additional tests in Broker
julianmrodri Jun 5, 2023
9cfd0f0
additional auction test
julianmrodri Jun 5, 2023
9daf263
compoundv2 coverage
julianmrodri Jun 5, 2023
7bde296
additional vault checks
julianmrodri Jun 5, 2023
89bd380
lot price coverage
julianmrodri Jun 5, 2023
fb60b2d
reth coverage
julianmrodri Jun 5, 2023
f8cbf8a
new mock for coverage
julianmrodri Jun 5, 2023
384b61d
pooltokens coverage comment
julianmrodri Jun 5, 2023
610a9ec
fix IAToken reference
julianmrodri Jun 5, 2023
426f078
fix lint
julianmrodri Jun 5, 2023
8e8dd3b
fix IAToken reference
julianmrodri Jun 5, 2023
98adabc
IAToken reference update
julianmrodri Jun 5, 2023
034ce48
StaticATokens: closeTo(, 1)
tbrent Jun 5, 2023
9ed82b0
incorporate julian's coverage tests
tbrent Jun 5, 2023
e2f1506
CrvVault -> CurveVault
tbrent Jun 5, 2023
2fc5742
init crv versions of tests
tbrent Jun 5, 2023
0d11765
convert crv versions of tests; rewrite RewardableERC20 to not use ERC…
tbrent Jun 6, 2023
919fe90
Merge branch '3.0.0-rc3' into curve-collateral
tbrent Jun 6, 2023
39a0d36
convex contracts changes
julianmrodri Jun 6, 2023
ef55d23
convex price tests
julianmrodri Jun 6, 2023
d112144
separate out RewardableERC4626Vault from RewardableERC20Wrapper; use …
tbrent Jun 6, 2023
0ee069c
Merge branch '3.0.0-rc3' into curve-collateral
tbrent Jun 6, 2023
a956a7c
extend old RewardableERC20Vault test to handle testing of both wrappe…
tbrent Jun 6, 2023
1afb383
add verification of CTokenWrapper
tbrent Jun 6, 2023
33cb61b
fix CTokenWrapper tests
tbrent Jun 6, 2023
32cbcf5
think all tests to passing
tbrent Jun 6, 2023
2eea94b
keep exchangeRate on wrapper but bypass for gas optimization
tbrent Jun 6, 2023
91f6124
comment nits
tbrent Jun 6, 2023
c1bf32e
fix CTokenWrapperMock minting in tests
tbrent Jun 6, 2023
7fd3707
fix AssetPlugins integration tests
tbrent Jun 6, 2023
6fae4b2
remove last 17 decimal check
tbrent Jun 6, 2023
d66a568
fix flux finance helper
tbrent Jun 6, 2023
8f41e3d
fix CTokenFiatCollateral tests
tbrent Jun 6, 2023
54ba777
.github/workflow add ram to extreme tests
tbrent Jun 6, 2023
78f07bc
eslint nit
tbrent Jun 7, 2023
4b263a7
deployment scripts
tbrent Jun 7, 2023
589f600
verification scripts
tbrent Jun 7, 2023
720d0d1
remove dup transfer
tbrent Jun 7, 2023
bb85269
network block time library
julianmrodri Jun 7, 2023
2659b21
simplify _beforeTokenTransfer
tbrent Jun 7, 2023
c19dddf
run goerli deployment.
pmckelvy1 Jun 7, 2023
9fb19b8
Merge pull request #840 from reserve-protocol/curve-collateral
tbrent Jun 8, 2023
697ba3a
add base mainnet
julianmrodri Jun 8, 2023
103de51
fix pipeline.
pmckelvy1 Jun 8, 2023
f5d1b39
0.8.17 -> 0.8.19
tbrent Jun 8, 2023
7e16f17
get StRSR under contract size by combining require statements
tbrent Jun 8, 2023
2e4d918
show FacadeAct.stakeAndDelegate() solution
tbrent Jun 8, 2023
87536c0
undo
tbrent Jun 8, 2023
f9f5f4a
Merge branch '3.0.0-rc3' into feat-networklib
tbrent Jun 8, 2023
228a8dd
Merge branch '3.0.0-rc3' into feat-networklib
tbrent Jun 8, 2023
2f95045
last 0.8.17 mentions
tbrent Jun 8, 2023
ddee7ea
fix failing test
tbrent Jun 9, 2023
c5d8d9a
implement SDAI plugin
tbrent Jun 9, 2023
d7d5686
deployment script
tbrent Jun 9, 2023
a37ec02
remove console.log
tbrent Jun 9, 2023
78906b4
deploy reth and wsteth collateral with mock oracles.
pmckelvy1 Jun 9, 2023
f9e4389
fix integration tests.
pmckelvy1 Jun 9, 2023
31995c8
use sDAI address
tbrent Jun 9, 2023
1a2d68c
fix linting.
pmckelvy1 Jun 9, 2023
227e50b
fix deployment
tbrent Jun 9, 2023
9d273cf
coverage pool tokens cvx
julianmrodri Jun 9, 2023
af9fa59
fixes on tests
julianmrodri Jun 9, 2023
c264a3d
fix lint
julianmrodri Jun 9, 2023
6d2c72a
add refPerTok manipulation
tbrent Jun 10, 2023
6eedc9f
verification script
tbrent Jun 10, 2023
0879740
README
tbrent Jun 10, 2023
046bc54
remove all unnecessary interface functions and move PotMock into mock…
tbrent Jun 10, 2023
0447218
simplify even more
tbrent Jun 10, 2023
29d5048
fix multiple price test
julianmrodri Jun 12, 2023
c5212dd
additional constructor check
julianmrodri Jun 12, 2023
839a525
additional coverage refactors
julianmrodri Jun 12, 2023
0beba5b
Merge pull request #842 from reserve-protocol/feat-networklib
julianmrodri Jun 12, 2023
00fd7a9
Merge branch '3.0.0-rc3' into cov-pooltokens
julianmrodri Jun 12, 2023
f7a1138
additional checks
julianmrodri Jun 12, 2023
3bfa0f6
test exchange rate in CToken wrapper
julianmrodri Jun 12, 2023
226f5b7
compound3 final coverage
julianmrodri Jun 12, 2023
3e7c7de
pool tokens coverage
julianmrodri Jun 12, 2023
4e85168
Merge pull request #844 from reserve-protocol/dsr-collateral
tbrent Jun 12, 2023
5ced970
add plugin and hardhat config settings.
pmckelvy1 Jun 13, 2023
fae768b
update verify utils with tenderly branch.
pmckelvy1 Jun 13, 2023
b7d3c0b
verification works.
pmckelvy1 Jun 13, 2023
3b9d123
fix tests
julianmrodri Jun 13, 2023
925c02a
fix compilation error
julianmrodri Jun 13, 2023
de6a1a7
Merge pull request #845 from reserve-protocol/cov-pooltokens
julianmrodri Jun 13, 2023
8868516
curve wrapper test
julianmrodri Jun 13, 2023
b73edb3
final coverage scenarios
julianmrodri Jun 13, 2023
55e0ba0
Merge pull request #846 from reserve-protocol/cov-additional
julianmrodri Jun 13, 2023
dbaf05e
add libs.
pmckelvy1 Jun 15, 2023
26f777f
ignore tenderly deployments.
pmckelvy1 Jun 15, 2023
298f8db
add CBETH plugin
jankjr Jun 14, 2023
cc8d777
CBETH tests
jankjr Jun 14, 2023
10074f2
comments
jankjr Jun 15, 2023
e2e3eb2
lint
jankjr Jun 15, 2023
6027c8c
add deployment and verification scripts for CBETH, enable revenuehidi…
jankjr Jun 16, 2023
6d9c059
fix deployment and lint
jankjr Jun 16, 2023
6f1bb6e
try to fix pipeline.
pmckelvy1 Jun 16, 2023
ba09cc3
udpate ci to skip setup on tenderly.
pmckelvy1 Jun 16, 2023
ed52695
fix flux tests.
pmckelvy1 Jun 16, 2023
4887768
fix hardhat config.
pmckelvy1 Jun 16, 2023
80d3d5b
fix liniting and ctoken tests.
pmckelvy1 Jun 16, 2023
c886a0a
rETH -> cbETH
tbrent Jun 16, 2023
0cf9ed0
defaultRethCollateralOpts -> defaultCBEthCollateralOpts
tbrent Jun 16, 2023
11cfaad
Merge pull request #847 from reserve-protocol/feat/plugin-cb-eth
tbrent Jun 16, 2023
9b4f543
try to silence annoying tenderly logs.
pmckelvy1 Jun 19, 2023
1a5c18d
install first duh.
pmckelvy1 Jun 19, 2023
6b02162
remove name.
pmckelvy1 Jun 19, 2023
ca98127
fix workflow.
pmckelvy1 Jun 19, 2023
e451ac2
install tenderly cli.
pmckelvy1 Jun 19, 2023
7a68e73
3.0.0 extreme tests (#839)
pmckelvy1 Jun 19, 2023
551d412
fix non-determinism in furnace tests?
pmckelvy1 Jun 19, 2023
0735546
remove CI from env, add tenderly cli instructions to readme.
pmckelvy1 Jun 19, 2023
9132097
some cleanup.
pmckelvy1 Jun 19, 2023
bcaab90
fix furnace tests?
pmckelvy1 Jun 19, 2023
dcd559f
remove tenderly cli login from workflow.
pmckelvy1 Jun 19, 2023
a0782c3
rollback advanceTime usage.
pmckelvy1 Jun 19, 2023
785908f
branch '3.0.0-rc3' into 3.0.0-goerli-deploy
pmckelvy1 Jun 19, 2023
8de78dc
fix tests and deployments.
pmckelvy1 Jun 19, 2023
10f83af
fix integration tests.
pmckelvy1 Jun 19, 2023
f8aec3f
update dev-env.md.
pmckelvy1 Jun 19, 2023
53fb4a8
Merge pull request #848 from reserve-protocol/add-tenderly-plugin
julianmrodri Jun 20, 2023
0772fa0
remove unnecessary comps.
pmckelvy1 Jun 20, 2023
4415bb3
lint fix.
pmckelvy1 Jun 20, 2023
63a8282
Merge pull request #843 from reserve-protocol/3.0.0-goerli-deploy
tbrent Jun 20, 2023
a507747
RToken Oracle (#849)
akshatmittal Jun 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ jobs:
hardhat-network-fork-
- run: yarn test:extreme:integration
env:
NODE_OPTIONS: '--max-old-space-size=4096'
TS_NODE_SKIP_IGNORE: true
MAINNET_RPC_URL: https://eth-mainnet.alchemyapi.io/v2/${{ secrets.ALCHEMY_MAINNET_KEY }}

Expand Down
3 changes: 2 additions & 1 deletion .solhintignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ contracts/libraries/Fixed.sol

contracts/vendor
contracts/plugins/assets/compound/vendor
contracts/plugins/assets/convex/vendor
contracts/plugins/assets/curve/crv
contracts/plugins/assets/curve/cvx
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Collateral / Asset plugins from 2.1.0 do not need to be upgraded

#### Core Protocol Contracts

Bump solidity version to 0.8.19

- `AssetRegistry` [+1 slot]
Summary: Other component contracts need to know when refresh() was last called
- Add last refresh timestamp tracking and expose via `lastRefresh()` getter
Expand Down
13 changes: 12 additions & 1 deletion common/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,23 @@ export interface ITokens {
wstETH?: string
rETH?: string
cUSDCv3?: string
sDAI?: string
}

export interface IFeeds {
stETHETH?: string
stETHUSD?: string
}

export interface IPlugins {
export interface IPools {
cvx3Pool?: string
cvxeUSDFRAXBP?: string
cvxTriCrypto?: string
cvxMIM3Pool?: string
crv3Pool?: string
crveUSDFRAXBP?: string
crvTriCrypto?: string
crvMIM3Pool?: string
}

interface INetworkConfig {
Expand All @@ -69,6 +74,7 @@ interface INetworkConfig {
AAVE_LENDING_POOL?: string
AAVE_INCENTIVES?: string
AAVE_EMISSIONS_MGR?: string
AAVE_RESERVE_TREASURY?: string
COMPTROLLER?: string
FLUX_FINANCE_COMPTROLLER?: string
GNOSIS_EASY_AUCTION?: string
Expand Down Expand Up @@ -126,6 +132,7 @@ export const networkConfig: { [key: string]: INetworkConfig } = {
wstETH: '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
rETH: '0xae78736Cd615f374D3085123A210448E74Fc6393',
cUSDCv3: '0xc3d688B66703497DAA19211EEdff47f25384cdc3',
sDAI: '0x83f20f44975d03b1b09e64809b757c47f942beea',
},
chainlinkFeeds: {
RSR: '0x759bBC1be8F90eE6457C44abc7d443842a976d02',
Expand Down Expand Up @@ -153,6 +160,7 @@ export const networkConfig: { [key: string]: INetworkConfig } = {
AAVE_LENDING_POOL: '0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9',
AAVE_INCENTIVES: '0xd784927Ff2f95ba542BfC824c8a8a98F3495f6b5',
AAVE_EMISSIONS_MGR: '0xEE56e2B3D491590B5b31738cC34d5232F378a8D5',
AAVE_RESERVE_TREASURY: '0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c',
FLUX_FINANCE_COMPTROLLER: '0x95Af143a021DF745bc78e845b54591C53a8B3A51',
COMPTROLLER: '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
GNOSIS_EASY_AUCTION: '0x0b7fFc1f4AD541A4Ed16b40D8c37f0929158D101',
Expand Down Expand Up @@ -211,6 +219,7 @@ export const networkConfig: { [key: string]: INetworkConfig } = {
wstETH: '0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0',
rETH: '0xae78736Cd615f374D3085123A210448E74Fc6393',
cUSDCv3: '0xc3d688B66703497DAA19211EEdff47f25384cdc3',
sDAI: '0x83f20f44975d03b1b09e64809b757c47f942beea',
},
chainlinkFeeds: {
RSR: '0x759bBC1be8F90eE6457C44abc7d443842a976d02',
Expand All @@ -236,6 +245,7 @@ export const networkConfig: { [key: string]: INetworkConfig } = {
rETH: '0x536218f9E9Eb48863970252233c8F271f554C2d0', // rETH/ETH
},
AAVE_LENDING_POOL: '0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9',
AAVE_RESERVE_TREASURY: '0x464C71f6c2F760DdA6093dCB91C24c39e5d6e18c',
FLUX_FINANCE_COMPTROLLER: '0x95Af143a021DF745bc78e845b54591C53a8B3A51',
COMPTROLLER: '0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B',
GNOSIS_EASY_AUCTION: '0x0b7fFc1f4AD541A4Ed16b40D8c37f0929158D101',
Expand Down Expand Up @@ -422,6 +432,7 @@ export const MAX_MIN_TRADE_VOLUME = BigNumber.from(10).pow(29)
export const MIN_THROTTLE_AMT_RATE = BigNumber.from(10).pow(18)
export const MAX_THROTTLE_AMT_RATE = BigNumber.from(10).pow(48)
export const MAX_THROTTLE_PCT_RATE = BigNumber.from(10).pow(18)
export const GNOSIS_MAX_TOKENS = BigNumber.from(7).mul(BigNumber.from(10).pow(28))

// Timestamps
export const MAX_ORACLE_TIMEOUT = BigNumber.from(2).pow(48).sub(1)
Expand Down
2 changes: 1 addition & 1 deletion contracts/facade/DeployerRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/access/Ownable.sol";
import "../interfaces/IDeployerRegistry.sol";
Expand Down
3 changes: 2 additions & 1 deletion contracts/facade/FacadeAct.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/Multicall.sol";
Expand All @@ -14,6 +14,7 @@ import "../interfaces/IFacadeRead.sol";
* For use with ^3.0.0 RTokens.
*/
contract FacadeAct is IFacadeAct, Multicall {
using SafeERC20 for IERC20;
using FixLib for uint192;

function claimRewards(IRToken rToken) public {
Expand Down
2 changes: 1 addition & 1 deletion contracts/facade/FacadeRead.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../plugins/trading/DutchTrade.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/facade/FacadeTest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../interfaces/IAsset.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/facade/FacadeWrite.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "../interfaces/IFacadeWrite.sol";
import "./lib/FacadeWriteLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/facade/lib/FacadeWriteLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "../../plugins/governance/Governance.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IAsset.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IAssetRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IAsset.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IBackingManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IBroker.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IBasketHandler.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../libraries/Fixed.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IBroker.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "./IAsset.sol";
import "./IComponent.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IComponent.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "./IMain.sol";
import "./IVersioned.sol";
Expand Down
4 changes: 2 additions & 2 deletions contracts/interfaces/IDeployer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "../libraries/Throttle.sol";
Expand Down Expand Up @@ -30,7 +30,7 @@ struct DeploymentParams {
uint48 longFreeze; // {s} how long each freeze extension lasts
//
// === Rewards (Furnace + StRSR) ===
uint192 rewardRatio; // the fraction of available revenues that are paid out each 12s period
uint192 rewardRatio; // the fraction of available revenues that are paid out each block period
//
// === StRSR ===
uint48 unstakingDelay; // {s} the "thawing time" of staked RSR before withdrawal
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IDeployerRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "./IDeployer.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IDistributor.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IComponent.sol";
Expand Down
3 changes: 2 additions & 1 deletion contracts/interfaces/IFacadeAct.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "../interfaces/IBackingManager.sol";
import "../interfaces/IStRSRVotes.sol";
import "../interfaces/IRevenueTrader.sol";
import "../interfaces/IRToken.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IFacadeRead.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "../p1/RToken.sol";
import "./IRToken.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IFacadeTest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "./IRToken.sol";
import "./IStRSR.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IFacadeWrite.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "./IDeployer.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IFurnace.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "../libraries/Fixed.sol";
import "./IComponent.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IGnosis.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

Expand Down
6 changes: 1 addition & 5 deletions contracts/interfaces/IMain.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand All @@ -16,10 +16,6 @@ import "./IStRSR.sol";
import "./ITrading.sol";
import "./IVersioned.sol";

// Warning, assumption: Chain should have blocktimes of 12s
// See docs/system-design.md for discussion of handling longer or shorter times
uint48 constant ONE_BLOCK = 12; //{s}

// === Auth roles ===

bytes32 constant OWNER = bytes32(bytes("OWNER"));
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IRToken.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
// solhint-disable-next-line max-line-length
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IRevenueTrader.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "./IBroker.sol";
import "./IComponent.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IRewardable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./IComponent.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IStRSR.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol";
// solhint-disable-next-line max-line-length
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IStRSRVotes.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts-upgradeable/governance/utils/IVotesUpgradeable.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITrade.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "./IBroker.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITrading.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../libraries/Fixed.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IVersioned.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

interface IVersioned {
function version() external view returns (string memory);
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/Array.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/Fixed.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: BlueOak-1.0.0
// solhint-disable func-name-mixedcase func-visibility
pragma solidity ^0.8.17;
pragma solidity ^0.8.19;

/// @title FixedPoint, a fixed-point arithmetic library defining the custom type uint192
/// @author Matt Elder <[email protected]> and the Reserve Team <https://reserve.org>
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/Permit.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/cryptography/SignatureCheckerUpgradeable.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/String.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

// From https://gist.github.com/ottodevs/c43d0a8b4b891ac2da675f825b1d1dbf
library StringLib {
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/Throttle.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity 0.8.17;
pragma solidity 0.8.19;

import "./Fixed.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/test/ArrayCallerMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity ^0.8.17;
pragma solidity ^0.8.19;

import "../Array.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/test/FixedCallerMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity ^0.8.17;
pragma solidity ^0.8.19;

import "../Fixed.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/test/StringCallerMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BlueOak-1.0.0
pragma solidity ^0.8.17;
pragma solidity ^0.8.19;

import "../String.sol";

Expand Down
Loading