Skip to content

Commit

Permalink
RC1 - ReleaseGold script should compare fromBalance with 2 cGLD not…
Browse files Browse the repository at this point in the history
… 1 (#3553)

* Comparing from balance to 2cgld

* Using 2cgld constant
  • Loading branch information
lucasege authored Apr 22, 2020
1 parent cac656e commit eac57f9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ let ReleaseGoldMultiSigProxy: ReleaseGoldMultiSigProxyContract
let ReleaseGold: ReleaseGoldContract
let ReleaseGoldProxy: ReleaseGoldProxyContract
const ONE_CGLD = web3.utils.toWei('1', 'ether')
const TWO_CGLD = web3.utils.toWei('2', 'ether')
const MAINNET_START_TIME = new Date('22 April 2020 16:00:00 UTC').getTime() / 1000

async function handleGrant(releaseGoldConfig: any, currGrant: number) {
Expand Down Expand Up @@ -192,7 +193,8 @@ async function checkBalance(releaseGoldConfig: any) {
)
continue
}
if (fromBalance.gt(ONE_CGLD)) {
// Must be enough to handle 1cGLD test transfer and 1cGLD for transaction fees
if (fromBalance.gt(TWO_CGLD)) {
console.info(
'\nSending 1 cGLD as a test from ' +
fromAddress +
Expand Down

0 comments on commit eac57f9

Please sign in to comment.