-
Notifications
You must be signed in to change notification settings - Fork 20
Xdc deploy #283
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
Merged
Merged
Xdc deploy #283
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
947f6ea
add: improve ubi calculations
sirpy cdbe908
add: more verbose error
sirpy 4b153b4
add: disthelper deployer with recipients
sirpy 88b88a1
fix: cross chain community treasury
sirpy 929eef7
add: improve ubi smoothing
sirpy 65edbfc
add: verified erc1967proxy
sirpy 9bfe086
add: xdc gip-25 step1 ready
sirpy 71c0eba
fix: correct expected bridge impl per chain address
sirpy 7d7ed7a
fix: safe proposal and mpb settings
sirpy 5ac3056
fix: ubi updates tests
sirpy 317ea5e
add: env-enc
sirpy 98d4d23
fix: claimcycle unit test
sirpy c2d7ce3
add: remove need for specific pool fee
sirpy 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 hidden or 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 hidden or 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 hidden or 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,31 @@ | ||
| pragma solidity >=0.8; | ||
|
|
||
| import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
| import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; | ||
| import "@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol"; | ||
| import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | ||
| import "@openzeppelin/contracts/utils/math/Math.sol"; | ||
|
|
||
| import "../reserve/GenericDistributionHelper.sol"; | ||
|
|
||
| contract GenericDistributionHelperTest is GenericDistributionHelper { | ||
| function onDistribution(uint256 _amount) external override { | ||
| revert(); | ||
| } | ||
| } | ||
|
|
||
| contract GenericDistributionHelperTestHelper is GenericDistributionHelper { | ||
| IMessagePassingBridge bridge; | ||
|
|
||
| function setOracle(IStaticOracle oracle) external { | ||
| STATIC_ORACLE = oracle; | ||
| } | ||
|
|
||
| function getBridge() public view override returns (IMessagePassingBridge) { | ||
| return bridge; | ||
| } | ||
|
|
||
| function setBridges(address _mpbBridge) external { | ||
| bridge = IMessagePassingBridge(_mpbBridge); | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.