forked from nucypher/nucypher-contracts
-
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 pull request nucypher#230 from cygnusv/fixbeta
Fix refund calculation bug in BetaProgramInitiator (part 2)
- Loading branch information
Showing
4 changed files
with
54 additions
and
5 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
26 changes: 26 additions & 0 deletions
26
deployment/constructor_params/mainnet/redeploy-coordinator.yml
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,26 @@ | ||
deployment: | ||
name: redeploy-coordinator | ||
chain_id: 137 # Polygon Mainnet | ||
|
||
artifacts: | ||
dir: ./deployment/artifacts/ | ||
filename: redeploy-coordinator.json | ||
|
||
constants: | ||
# See deployment/artifacts/mainnet.json | ||
TACO_CHILD_APPLICATION: "0xFa07aaB78062Fac4C36995bF28F6D677667973F5" | ||
|
||
# DAI Token on Polygon PoS - References: | ||
# - https://polygonscan.com/token/0x8f3cf7ad23cd3cadbd9735aff958023239c6a063 | ||
# - https://github.com/search?q=0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063&type=code | ||
DAI_ON_POLYGON: "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063" | ||
|
||
# TACO specific constants: | ||
PRIVATE_BETA_FEE_RATE: 4050925925925 # $0.35 per day, expressed in DAI units per seconds (in Python: 35*10**16 // 86400) | ||
|
||
contracts: | ||
- Coordinator: | ||
constructor: | ||
_application: $TACO_CHILD_APPLICATION | ||
_currency: $DAI_ON_POLYGON | ||
_feeRatePerSecond: $PRIVATE_BETA_FEE_RATE |
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,23 @@ | ||
#!/usr/bin/python3 | ||
|
||
from ape import project | ||
|
||
from deployment.constants import CONSTRUCTOR_PARAMS_DIR | ||
from deployment.params import Deployer | ||
|
||
VERIFY = False | ||
CONSTRUCTOR_PARAMS_FILEPATH = CONSTRUCTOR_PARAMS_DIR / "mainnet" / "redeploy-coordinator.yml" | ||
|
||
|
||
def main(): | ||
|
||
deployer = Deployer.from_yaml(filepath=CONSTRUCTOR_PARAMS_FILEPATH, verify=VERIFY) | ||
|
||
coordinator_implementation = deployer.deploy(project.Coordinator) | ||
|
||
deployments = [ | ||
coordinator_implementation, | ||
] | ||
|
||
deployer.finalize(deployments=deployments) | ||
|