forked from lidofinance/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shares math to stETH token (Aragon-way) lidofinance#28
* Add DePool mock with initializer * Add shares and totalShares vars to stETH * Add shares-related getter * Link math to totalControlledEthers of DePool * Fix minimal tests
- Loading branch information
Showing
5 changed files
with
156 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pragma solidity 0.4.24; | ||
|
||
import "../DePool.sol"; | ||
import "./VaultMock.sol"; | ||
|
||
|
||
/** | ||
* @dev Only for testing purposes! DePool version with some functions exposed. | ||
*/ | ||
contract DePoolMock is DePool { | ||
|
||
function initialize(ISTETH _token) public { | ||
_setToken(_token); | ||
initialized(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters