File tree 2 files changed +21
-35
lines changed
2 files changed +21
-35
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ import {IOracle} from "src/interfaces/IOracle.sol";
7
7
import {MathLib} from "src/libraries/MathLib.sol " ;
8
8
import {SafeTransferLib} from "src/libraries/SafeTransferLib.sol " ;
9
9
10
- import {Ownable} from "src/Ownable.sol " ;
11
-
12
10
uint constant WAD = 1e18 ;
13
11
14
12
uint constant alpha = 0.5e18 ;
@@ -31,12 +29,14 @@ function irm(uint utilization) pure returns (uint) {
31
29
return utilization / 365 days ;
32
30
}
33
31
34
- contract Blue is Ownable {
32
+ contract Blue {
35
33
using MathLib for uint ;
36
34
using SafeTransferLib for IERC20 ;
37
35
38
36
// Storage.
39
37
38
+ // Owner.
39
+ address public owner;
40
40
// User' supply balances.
41
41
mapping (Id => mapping (address => uint )) public supplyShare;
42
42
// User' borrow balances.
@@ -54,7 +54,24 @@ contract Blue is Ownable {
54
54
// Interests last update (used to check if a market has been created).
55
55
mapping (Id => uint ) public lastUpdate;
56
56
57
- constructor (address owner ) Ownable (owner) {}
57
+ // Constructor.
58
+
59
+ constructor (address newOwner ) {
60
+ owner = newOwner;
61
+ }
62
+
63
+ // Modifiers.
64
+
65
+ modifier onlyOwner () {
66
+ require (msg .sender == owner, "not owner " );
67
+ _;
68
+ }
69
+
70
+ // Only owner functions.
71
+
72
+ function transferOwnership (address newOwner ) external onlyOwner {
73
+ owner = newOwner;
74
+ }
58
75
59
76
// Markets management.
60
77
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments