Go to file
microwavedcola1 659300b3a0 test group for uxd on devnet
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-10-21 15:31:26 +02:00
assets csv - binary comparison 2022-10-19 14:07:46 +02:00
programs/mango-v3-reimbursement Add disclaimer 2022-10-19 21:10:01 +02:00
ts/client/src test group for uxd on devnet 2022-10-21 15:31:26 +02:00
.gitignore Program tests 2022-10-19 12:40:57 +02:00
.prettierignore First commit 2022-10-17 20:13:44 +02:00
Anchor.toml Prepare for anchor publish 2022-10-19 15:21:36 +02:00
Cargo.lock Prepare for anchor publish 2022-10-19 15:21:36 +02:00
Cargo.toml First commit 2022-10-17 20:13:44 +02:00
LICENSE.MD Create LICENSE.MD 2022-10-19 20:57:20 +02:00
README.md Update README.md 2022-10-20 13:04:12 +02:00
idl-fixup.sh First commit 2022-10-17 20:13:44 +02:00
package.json notification 2022-10-20 09:46:06 +02:00
release-to-devnet.sh switch to released anchor 2022-10-19 15:22:32 +02:00
release-to-mainnet.sh switch to released anchor 2022-10-19 15:22:32 +02:00
tsconfig.json fixes for npm module 2022-10-18 17:29:07 +02:00
tsconfig.tsbuildinfo ts config fix 2022-10-18 16:41:11 +02:00
update-local-idl.sh First commit 2022-10-17 20:13:44 +02:00
yarn.lock notification 2022-10-20 09:46:06 +02:00

README.md

Flow

  • Write to table
  • Create group
  • Create vaults
  • Token Transfer to vaults outside the context of the program
  • UI creates Reimbursement account
  • UI packs tx with ixs which contain
    • create token account OR a create idempotent ATA
    • reimburse to above token account OR ATA

mango-v3-reimbursement

This repository contains code that allows users of mango v3 to receive re-imbursement after the emergency shutdown in Slot 154,889,307.

Deployment

First calculate the re-imbursement from a recent solana snapshot, we used Slot 154,856,403:

cargo run --bin cli equity-from-snapshot \
--snapshot snapshot-154856403-HJj8oytGGRnbUoFdojewzBWB3FrTBaTJdx1v4g63oUWc.sqlite \
--late-changes deposits_withdraws.tsv \
--program mv3ekLzLbnVPNxjSKvqBpU3ZeZXPQdEC3bp5MDEBG68 \
--group 98pjRuQjK3qA6gXts96PqZT4Ze5QmnCmt3QYjhbUSPue \
--outtype csv --outfile reimbursement.csv

cargo run --bin cli equity-from-snapshot \
--snapshot snapshot-154856403-HJj8oytGGRnbUoFdojewzBWB3FrTBaTJdx1v4g63oUWc.sqlite \
--late-changes deposits_withdraws.tsv \
--program mv3ekLzLbnVPNxjSKvqBpU3ZeZXPQdEC3bp5MDEBG68 \
--group 98pjRuQjK3qA6gXts96PqZT4Ze5QmnCmt3QYjhbUSPue \
--outtype bin --outfile reimbursement.bin