# Lost all my cycles when deploying to the network

**URL:** <https://forum.dfinity.org/t/lost-all-my-cycles-when-deploying-to-the-network/5536>\
**Category:** Developers\
**Created:** [June 27, 2021, 7:34pm UTC](https://forum.dfinity.org/t/lost-all-my-cycles-when-deploying-to-the-network/5536 "2021-06-27T19:34:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![colothbrok](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@colothbrok](https://forum.dfinity.org/u/colothbrok)\
**Post date:** [June 27, 2021, 7:34pm UTC](https://forum.dfinity.org/t/lost-all-my-cycles-when-deploying-to-the-network/5536/1 "2021-06-27T19:34:58Z")

</div>

Finally got to send my icp to developer account.

Then turned them into cycles for my canister.

But get an error saying it wasnt enough (needed 11T cycles) but i had 22T cycles

Now i only have 0.9T cycles and a non deployed canister.

What the hell is wrong with this system.

---

<div class="post-metadata">

**Author:** ![stephenandrews](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/stephenandrews/32/1803_2.png) [@stephenandrews](https://forum.dfinity.org/u/stephenandrews)\
**Post date:** [June 28, 2021, 5:17am UTC](https://forum.dfinity.org/t/lost-all-my-cycles-when-deploying-to-the-network/5536/2 "2021-06-28T05:17:56Z")

</div>

11T is the default amount, you should specify using --with-cycles 2\_000\_000\_000\_000 to onlybuse 2T cycles. It’s also per canister, so if you have a frontend and backend canister it would use the specified amount x2 (or 22T if you use the default).

The cycles are in the canisters, minus the 1T creation fee so each canister will have 10T each.

Furthermore, if theres an error saying you dont have enough it sounds like it was trying to create a 3rd canister.

---

<div class="post-metadata">

**Author:** ![alexa.smith](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/alexa.smith/32/21_2.png) [@alexa.smith](https://forum.dfinity.org/u/alexa.smith)\
**Post date:** [June 28, 2021, 10:06pm UTC](https://forum.dfinity.org/t/lost-all-my-cycles-when-deploying-to-the-network/5536/3 "2021-06-28T22:06:33Z")

</div>

Hi @colothbrok we bumped the default down to 4T in the most recent release of the SDK `0.7.2`. As @stephenandrews mentioned it takes around ~1T to create a canister, and we provided a default of 3T cycles to keep the canister up-and-running for a bit of time. You can also use the `--with-cycles` flag Stephen mentioned to specify a lower amount as needed. Sending you a DM now regarding your lost cycles!

---

<div class="post-metadata">

**Author:** ![colothbrok](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@colothbrok](https://forum.dfinity.org/u/colothbrok)\
**Post date:** [June 30, 2021, 1:48am UTC](https://forum.dfinity.org/t/lost-all-my-cycles-when-deploying-to-the-network/5536/4 "2021-06-30T01:48:49Z")

</div>

Thank you for all the helpful information and resolving the cycles issue. I appreciate your quick responses and time spent assisting me.

---

<div class="post-metadata">

**Author:** ![boxBox](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@boxBox](https://forum.dfinity.org/u/boxBox)\
**Post date:** [June 30, 2021, 9:21am UTC](https://forum.dfinity.org/t/lost-all-my-cycles-when-deploying-to-the-network/5536/5 "2021-06-30T09:21:41Z")

</div>

@alexa.smith @stephenandrews since the default was changed, is it possible to withdraw cycles from the canister back into the cycles wallet?

---

<div class="post-metadata">

**Author:** ![flyq](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/flyq/32/3637_2.png) [@flyq](https://forum.dfinity.org/u/flyq)\
**Post date:** [June 30, 2021, 9:29am UTC](https://forum.dfinity.org/t/lost-all-my-cycles-when-deploying-to-the-network/5536/6 "2021-06-30T09:29:57Z")

</div>

Yes, you need to update the canister code, which cantains a function that call `actor("your wallet").wallet_receive()` with `Cycles.add(amount)`.  
For more info:

> **[Internet Computer | Documentation](https://sdk.dfinity.org/docs/language-guide/cycles.html)**
>
> Documentation for the internet computer.
