fix account sizes

This commit is contained in:
Hendrik Hofstadt 2020-11-30 11:33:40 +01:00
parent bec598b41a
commit 029d4b71ef
2 changed files with 5 additions and 5 deletions

View File

@ -234,8 +234,8 @@ Accounts created: `1 ClaimedVAA + 1 SignatureState`
Costs:
```
4 TX (14 secp signatures + 4 ed25519) + ClaimedVAA (exemption rent) + SignatureState (exemption rent)
18 * 10_000 + (36+128) * 6962 + (1337+128) * 6962
11521098 lamports = 0.0115 SOL
18 * 10_000 + (40+128) * 6962 + (1340+128) * 6962
11569832 lamports = 0.0116 SOL
```
**For a transfer from a foreign chain to Solana (20 guardians; 14 quorum):**
@ -247,8 +247,8 @@ Accounts created: `1 ClaimedVAA + 1 SignatureState (temporary; evicted in PostVA
Costs:
```
4 TX (14 secp signatures + 4 ed25519) + ClaimedVAA (exemption rent)
18 * 10_000 + (36+128) * 6962
1321768 lamports = 0.0013 SOL
18 * 10_000 + (40+128) * 6962
1349616 lamports = 0.0013 SOL
```
---

View File

@ -422,7 +422,7 @@ class SolanaBridge {
async getTransferFee(): Promise<number> {
// Reference processor.rs::Bridge::transfer_fee
return (await this.connection.getMinimumBalanceForRentExemption((37 + 1337) * 2)) + 18 * 10000 * 2
return (await this.connection.getMinimumBalanceForRentExemption((40 + 1340) * 2)) + 18 * 10000 * 2
}
}