# All eth gone after executing a script using rust sdk

**URL:** <https://forum.fuel.network/t/all-eth-gone-after-executing-a-script-using-rust-sdk/7694>\
**Category:** Rust SDK\
**Created:** [December 29, 2024, 3:34pm UTC](https://forum.fuel.network/t/all-eth-gone-after-executing-a-script-using-rust-sdk/7694 "2024-12-29T15:34:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asobazol](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/asobazol/32/3951_2.png) [@asobazol](https://forum.fuel.network/u/asobazol)\
**Post date:** [December 29, 2024, 3:34pm UTC](https://forum.fuel.network/t/all-eth-gone-after-executing-a-script-using-rust-sdk/7694/1 "2024-12-29T15:34:33Z")

</div>

used mira amm swap\_exact\_input script with rust sdk (abigen)

had a script error related to not being able to transfer assets, then i added this option:

with\_variable\_output\_policy(VariableOutputPolicy::Exactly(1))

run the script a few times with this option and then realized that all eth gone completely.  
in the explorer nothing is really spent to make account balance exactly zero.

where the funds could go? it was about 0.5 eth

---

<div class="post-metadata">

**Author:** ![derek](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@derek](https://forum.fuel.network/u/derek)\
**Post date:** [December 29, 2024, 3:56pm UTC](https://forum.fuel.network/t/all-eth-gone-after-executing-a-script-using-rust-sdk/7694/3 "2024-12-29T15:56:38Z")

</div>

Hey @asobazol, shoot the script over to help@mira.ly including your TX Id and we’ll look into it.
