forked from InverterNetwork/contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Updating from PR #13
Closed
Closed
Updating from PR #13
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3d39678
refactor:changed file structure
leeftk 788015f
fix:fee amount bug
leeftk a999c10
refactor:add internal func for redeem and issue
leeftk 5cc06f4
fix:projectfeeAmount variable
leeftk 86fc0cc
audit fix:remove normalize prices
leeftk d74527a
fix:failing test for issuance decimals
leeftk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
50 changes: 50 additions & 0 deletions
50
test/modules/fundingManager/oracle/utils/mocks/ERC20Issuance_blacklist_v1_exposed.sol
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,50 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.23; | ||
|
||
import {ERC20Issuance_Blacklist_v1} from | ||
"@ex/token/ERC20Issuance_Blacklist_v1.sol"; | ||
|
||
/** | ||
* @title ERC20Issuance_Blacklist_v1_Exposed | ||
* @dev Contract that exposes internal functions of ERC20Issuance_Blacklist_v1 for testing purposes | ||
*/ | ||
contract ERC20Issuance_Blacklist_v1_Exposed is ERC20Issuance_Blacklist_v1 { | ||
constructor( | ||
string memory name_, | ||
string memory symbol_, | ||
uint8 decimals_, | ||
uint initialSupply_, | ||
address initialAdmin_, | ||
address initialBlacklistManager_ | ||
) | ||
ERC20Issuance_Blacklist_v1( | ||
name_, | ||
symbol_, | ||
decimals_, | ||
initialSupply_, | ||
initialAdmin_, | ||
initialBlacklistManager_ | ||
) | ||
{} | ||
|
||
/** | ||
* @dev Exposes the internal _update function for testing | ||
* @param from_ Address tokens are transferred from | ||
* @param to_ Address tokens are transferred to | ||
* @param amount_ Amount of tokens transferred | ||
*/ | ||
function exposed_update(address from_, address to_, uint amount_) public { | ||
_update(from_, to_, amount_); | ||
} | ||
|
||
/** | ||
* @dev Exposes the internal _setBlacklistManager function for testing | ||
* @param account_ Address to set privileges for | ||
* @param privileges_ Whether to grant or revoke privileges | ||
*/ | ||
function exposed_setBlacklistManager(address account_, bool privileges_) | ||
public | ||
{ | ||
_setBlacklistManager(account_, privileges_); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
test/modules/fundingManager/oracle/utils/mocks/LM_ManualExternalPriceSetter_v1_exposed.sol
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess we can delete the file if we don't need it anymore |
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,14 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.23; | ||
|
||
import {LM_ManualExternalPriceSetter_v1} from | ||
"src/modules/logicModule/LM_ManualExternalPriceSetter_v1.sol"; | ||
import {IOrchestrator_v1} from | ||
"src/orchestrator/interfaces/IOrchestrator_v1.sol"; | ||
import {IAuthorizer_v1} from "@aut/IAuthorizer_v1.sol"; | ||
|
||
contract LM_ManualExternalPriceSetter_v1_Exposed is | ||
LM_ManualExternalPriceSetter_v1 | ||
{ | ||
constructor() {} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what was the reason for this change? just curious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was from the audit check here
InverterNetwork#704 (comment)