From ba3cf21e294fa65f6550fa323fa9f3a87f189bf5 Mon Sep 17 00:00:00 2001 From: microwavedcola1 Date: Thu, 14 Jul 2022 09:47:42 +0200 Subject: [PATCH] deposit Signed-off-by: microwavedcola1 --- ts/client/src/scripts/mb-example1-ids-json.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ts/client/src/scripts/mb-example1-ids-json.ts b/ts/client/src/scripts/mb-example1-ids-json.ts index 8f82d32de..d7e85722f 100644 --- a/ts/client/src/scripts/mb-example1-ids-json.ts +++ b/ts/client/src/scripts/mb-example1-ids-json.ts @@ -51,6 +51,16 @@ async function main() { console.log(`...created/found mangoAccount ${mangoAccount.publicKey}`); console.log(mangoAccount.toString(group)); + if (true) { + console.log(`...depositing 10 USDC`); + await client.tokenDeposit(group, mangoAccount, 'USDC', 10); + await mangoAccount.reload(client, group); + + console.log(`...depositing 1 SOL`); + await client.tokenDeposit(group, mangoAccount, 'SOL', 1); + await mangoAccount.reload(client, group); + } + if (true) { await mangoAccount.reload(client, group); console.log(