Skip to content

Commit

Permalink
increase amount for masterchain
Browse files Browse the repository at this point in the history
  • Loading branch information
rise1507 committed Aug 9, 2023
1 parent 8454686 commit c866105
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,9 @@
});

div.querySelector('#vesting_sendBtn' + index)?.addEventListener('click', () => {
$('#sendPopup_toAddressInput').value = '';
$('#sendPopup_amountInput').value = '';
$('#sendPopup_commentInput').value = '';
showPopup('sendPopup');
});

Expand Down Expand Up @@ -878,12 +881,14 @@
const payloadBase64 = TonWeb.utils.bytesToBase64(await payload.toBoc(false));
console.log('payload', payloadBase64);

const amountString = vestingWalletAddress.toString(false).startsWith('-1') ? '0.5' : '0.05';

const transaction = {
validUntil: Math.floor(Date.now() / 1000) + 60, // 1 minute
messages: [
{
address: vestingWalletAddress.toString(true, true, true, IS_TESTNET),
amount: toNano('0.05').toString(),
amount: toNano(amountString).toString(),
payload: payloadBase64, // raw one-cell BoC encoded in Base64
}
]
Expand Down Expand Up @@ -1138,6 +1143,11 @@
$('#create_inMasterchainCheckbox').checked = false;
$('#create_startTimeInput').value = nowToInputValue();

$('#create_totalAmountInput').value = '';
$('#create_totalDurationInput').value = '';
$('#create_cliffDurationInput').value = '';
$('#create_unlockPeriodInput').value = '';

renderCreateWhitelist();
updateCreate();
}
Expand Down

0 comments on commit c866105

Please sign in to comment.