Skip to content

Commit

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

type FnDeployer = (accounts: IAccount, deployment: Deployments) => void;

let BASE_CURRENCY = "KRW";

class Deployments {
public deployments: Map<string, IDeployedContract>;
public deployers: FnDeployer[];
Expand Down Expand Up @@ -429,6 +431,14 @@ async function deployCurrencyRate(accounts: IAccount, deployment: Deployments) {
symbol: tokenSymbol,
rate: multiple.mul(100),
},
{
symbol: BASE_CURRENCY.toLowerCase(),
rate: multiple,
},
{
symbol: BASE_CURRENCY.toUpperCase(),
rate: multiple,
},
];
const message = ContractUtils.getCurrencyMessage(height, rates);
const signatures = accounts.validators.map((m) => ContractUtils.signMessage(m, message));
Expand Down

0 comments on commit bc28e6a

Please sign in to comment.