stellar / rs-soroban-env

Rust environment for Soroban contracts.
Apache License 2.0
61 stars 41 forks source link

Emulate maximum possible nonce expiration in recording auth mode. #1419

Closed dmkozh closed 3 months ago

dmkozh commented 3 months ago

What

Emulate maximum possible nonce expiration in recording auth mode.

Why

Currently we don't really know what's the intended signature expiration during the auth simulation. Since there is always a potential option for the user to want to customize their signature expiration at the time of signing the auth (even though that option might not currently exist in the wallets), there is really no way to do better than assuming maximum possible expiration and thus maximum possible rent fee. Since the rent fee is refundable, the end user impact is just a slightly higher fee locked before applying the transaction and refunding the unused rent fee portion.

Known limitations

N/A