-
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.
Merge branch 'myso-oracle' of github.com:mysofinance/v2 into myso-oracle
- Loading branch information
Showing
7 changed files
with
548 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.19; | ||
|
||
import {IERC20, ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
import {ERC20Wrapper} from "@openzeppelin/contracts/token/ERC20/extensions/ERC20Wrapper.sol"; | ||
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; | ||
|
||
contract MockStMysoToken is Ownable, ERC20Wrapper { | ||
uint8 private _decimals; | ||
mapping(address => uint256) public weight; | ||
address public mysoToken; | ||
|
||
constructor( | ||
string memory _name, | ||
string memory _symbol, | ||
IERC20 _mysoToken | ||
) ERC20(_name, _symbol) ERC20Wrapper(_mysoToken) Ownable() { | ||
_decimals = ERC20(address(_mysoToken)).decimals(); | ||
} | ||
|
||
function depositFor( | ||
address account, | ||
uint256 amount | ||
) public override returns (bool) { | ||
weight[account] = amount; | ||
return super.depositFor(account, amount); | ||
} | ||
|
||
function withdrawTo( | ||
address account, | ||
uint256 amount | ||
) public override returns (bool) { | ||
weight[account] -= amount; | ||
return super.withdrawTo(account, amount); | ||
} | ||
|
||
function decimals() public view override returns (uint8) { | ||
return _decimals; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
contracts/tokenManager/interfaces/IDegenScoreBeaconReader.sol
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.