Skip to content

Commit

Permalink
Update deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKim20 committed Aug 28, 2024
1 parent 0d07624 commit a272c5f
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/contracts/deploy/side_chain_devnet/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ interface IAccount {

type FnDeployer = (accounts: IAccount, deployment: Deployments) => Promise<any>;

const BASE_CURRENCY = "PHP";

class Deployments {
public deployments: Map<string, IDeployedContract>;
public deployers: FnDeployer[];
Expand Down Expand Up @@ -444,6 +442,7 @@ async function deployCurrencyRate(accounts: IAccount, deployment: Deployments) {
await contract.deployTransaction.wait();
deployment.addContract(contractName, contract.address, contract);
console.log(`Deployed ${contractName} to ${contract.address}`);
const BASE_CURRENCY = await contract.defaultSymbol();

{
const multiple = await contract.multiple();
Expand Down Expand Up @@ -984,31 +983,31 @@ async function storeSampleExchangeRate(accounts: IAccount, deployment: Deploymen
const rates = [
{
symbol: "KIOS",
rate: BigNumber.from(1761925042),
rate: BigNumber.from(37803720000),
},
{
symbol: "KRW",
rate: BigNumber.from(42553191),
rate: BigNumber.from(1000000000),
},
{
symbol: "USD",
rate: BigNumber.from(58730834752),
rate: BigNumber.from(1369700000000),
},
{
symbol: "PHP",
rate: BigNumber.from(1000000000),
rate: BigNumber.from(24020000000),
},
{
symbol: "krw",
rate: BigNumber.from(42553191),
rate: BigNumber.from(1000000000),
},
{
symbol: "usd",
rate: BigNumber.from(58730834752),
rate: BigNumber.from(1369700000000),
},
{
symbol: "php",
rate: BigNumber.from(1000000000),
rate: BigNumber.from(24020000000),
},
];
const chainId = (await hre.ethers.provider.getNetwork()).chainId;
Expand Down

0 comments on commit a272c5f

Please sign in to comment.