2016-08-24 07:33:43 -07:00
|
|
|
<ion-view>
|
2016-08-31 12:54:53 -07:00
|
|
|
<ion-nav-bar class="bar-royal">
|
2016-09-16 10:54:39 -07:00
|
|
|
<ion-nav-back-button>
|
|
|
|
</ion-nav-back-button>
|
2016-08-24 07:33:43 -07:00
|
|
|
<ion-nav-title>Sell</ion-nav-title>
|
|
|
|
</ion-nav-bar>
|
2015-08-31 14:12:04 -07:00
|
|
|
|
2016-09-22 06:34:00 -07:00
|
|
|
<ion-content>
|
2015-08-31 14:12:04 -07:00
|
|
|
|
2016-08-31 12:43:52 -07:00
|
|
|
<div class="box-notification warning" ng-show="network == 'testnet'">
|
|
|
|
Testnet wallets only work with Glidera Sandbox Accounts
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box-notification notice" ng-show="limits && !sell.show2faCodeInput && !sell.success">
|
2015-12-02 07:52:28 -08:00
|
|
|
<span class="text-light">Daily sell limit</span>:
|
2016-08-24 07:33:43 -07:00
|
|
|
{{limits.dailySell|currency:'':2}} {{limits.currency}}
|
|
|
|
(remaining {{limits.dailySellRemaining|currency:'':2}} {{limits.currency}})
|
2015-12-02 07:52:28 -08:00
|
|
|
<br>
|
|
|
|
<span class="text-light">Monthly sell limit</span>:
|
2016-08-24 07:33:43 -07:00
|
|
|
{{limits.monthlySell|currency:'':2}} {{limits.currency}}
|
|
|
|
(remaining {{limits.monthlySellRemaining|currency:'':2}} {{limits.currency}})
|
2016-08-31 12:43:52 -07:00
|
|
|
</div>
|
2015-09-08 13:36:08 -07:00
|
|
|
|
2016-08-24 07:33:43 -07:00
|
|
|
<div class="box-notification m20b" ng-show="limits.transactDisabledPendingFirstTransaction">
|
|
|
|
<span class="text-warning">
|
|
|
|
This operation was disabled because you have a pending first transaction
|
|
|
|
</span>
|
|
|
|
</div>
|
2015-08-31 14:12:04 -07:00
|
|
|
|
2016-08-24 07:33:43 -07:00
|
|
|
<div ng-show="!sell.show2faCodeInput && !sell.success">
|
|
|
|
<form name="sellPriceForm" ng-if="token"
|
|
|
|
ng-submit="sell.get2faCode(token)" novalidate>
|
2015-09-08 13:36:08 -07:00
|
|
|
|
2016-09-06 07:59:05 -07:00
|
|
|
<div class="card list">
|
2016-08-24 07:33:43 -07:00
|
|
|
<label class="item item-input item-stacked-label">
|
|
|
|
<span class="input-label"><span>Amount in</span> {{showAlternative ? 'USD' : 'BTC'}}</span>
|
|
|
|
<input ng-show="!showAlternative"
|
|
|
|
type="number"
|
|
|
|
id="qty" ignore-mouse-wheel
|
|
|
|
name="qty"
|
|
|
|
ng-attr-placeholder="{{'Amount'}}"
|
|
|
|
ng-minlength="0.00000001"
|
|
|
|
ng-maxlength="10000000000"
|
|
|
|
ng-model="qty"
|
|
|
|
autocomplete="off"
|
|
|
|
ng-change="sell.getSellPrice(token, {'qty': qty})">
|
2015-09-11 09:11:41 -07:00
|
|
|
|
2016-08-24 07:33:43 -07:00
|
|
|
<input ng-show="showAlternative"
|
|
|
|
type="number"
|
|
|
|
id="fiat" ignore-mouse-wheel
|
|
|
|
name="fiat"
|
|
|
|
ng-attr-placeholder="{{'Amount'}}"
|
|
|
|
ng-model="fiat"
|
|
|
|
autocomplete="off"
|
|
|
|
ng-change="sell.getSellPrice(token, {'fiat': fiat})">
|
2015-08-31 14:12:04 -07:00
|
|
|
|
2016-08-24 07:33:43 -07:00
|
|
|
<a ng-show="!showAlternative"
|
|
|
|
class="postfix"
|
|
|
|
on-tap="showAlternative = true; qty = null; sell.sellPrice = null">BTC</a>
|
|
|
|
<a ng-show="showAlternative"
|
|
|
|
class="postfix"
|
|
|
|
on-tap="showAlternative = false; fiat = null; sell.sellPrice = null">USD</a>
|
|
|
|
</label>
|
|
|
|
</div>
|
2016-05-17 13:36:01 -07:00
|
|
|
|
2016-09-16 10:46:25 -07:00
|
|
|
<wallets ng-if="wallets[0]" wallets="wallets"></wallets>
|
|
|
|
|
2016-08-24 07:33:43 -07:00
|
|
|
<div class="text-center text-gray size-12 m20b" ng-show="!sell.gettingSellPrice && sell.sellPrice.qty">
|
|
|
|
Sell
|
|
|
|
<span ng-show="qty">{{sell.sellPrice.subtotal|currency:'':2}} {{sell.sellPrice.currency}} in Bitcoin</span>
|
|
|
|
<span ng-show="fiat">{{sell.sellPrice.qty}} BTC</span>
|
|
|
|
at {{sell.sellPrice.price|currency:'':2}} {{sell.sellPrice.currency}}/BTC
|
2015-09-09 06:39:35 -07:00
|
|
|
|
2016-08-24 07:33:43 -07:00
|
|
|
</div>
|
|
|
|
<div class="text-center text-gray size-12 m20b" ng-show="!sell.gettingSellPrice && !sell.sellPrice.qty">
|
|
|
|
(Enter the amount to get the exchange rate)
|
|
|
|
</div>
|
2015-09-09 11:24:47 -07:00
|
|
|
|
2016-08-24 07:33:43 -07:00
|
|
|
<div class="text-center text-gray size-12 m20b" ng-show="sell.gettingSellPrice">
|
|
|
|
...
|
|
|
|
</div>
|
2015-09-09 11:24:47 -07:00
|
|
|
|
2016-09-06 07:59:05 -07:00
|
|
|
<button class="button button-block button-positive"
|
2016-08-24 07:33:43 -07:00
|
|
|
type="submit"
|
2016-08-31 12:43:52 -07:00
|
|
|
ng-disabled="limits.transactDisabledPendingFirstTransaction || !sell.sellPrice.qty">
|
2016-08-24 07:33:43 -07:00
|
|
|
Continue
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div ng-show="sell.show2faCodeInput && !sell.success">
|
|
|
|
<div class="m10t text-center">
|
|
|
|
{{sell.sellPrice.qty}} BTC → {{sell.sellPrice.subtotal|currency:'':2}} {{sell.sellPrice.currency}}
|
|
|
|
<p class="m20t">
|
|
|
|
A SMS containing a confirmation code was sent to your phone. <br>
|
|
|
|
Please, enter the code below
|
|
|
|
</p>
|
|
|
|
<form name="sellForm"
|
|
|
|
ng-submit="sell.createTx(token, permissions, twoFaCode)" novalidate>
|
2016-09-06 07:59:05 -07:00
|
|
|
<div class="card list">
|
2016-08-24 07:33:43 -07:00
|
|
|
<label class="item item-input">
|
|
|
|
<input type="number" ng-model="twoFaCode" placeholder="2FA Code" required ignore-mouse-wheel>
|
|
|
|
</label>
|
2015-09-02 22:50:59 -07:00
|
|
|
</div>
|
2016-09-06 07:59:05 -07:00
|
|
|
<button class="button button-block button-positive"
|
2016-08-24 07:33:43 -07:00
|
|
|
type="submit"
|
|
|
|
ng-disabled="sellForm.$invalid ">
|
|
|
|
Sell
|
|
|
|
</button>
|
2016-05-17 13:36:01 -07:00
|
|
|
</form>
|
2016-08-24 07:33:43 -07:00
|
|
|
<p class="m10t size-12 text-gray">
|
|
|
|
Bitcoins will be immediately sent from your wallet to Glidera. Fiat will be deposited in your bank account in 4-6 business days.
|
2015-09-02 22:50:59 -07:00
|
|
|
</p>
|
|
|
|
</div>
|
2016-08-24 07:33:43 -07:00
|
|
|
</div>
|
|
|
|
<div class="text-center" ng-show="sell.success">
|
|
|
|
<h1>Sale initiated</h1>
|
|
|
|
<p class="text-gray">
|
|
|
|
A transfer has been initiated to your bank account and should arrive in 4-6 business days.
|
|
|
|
</p>
|
|
|
|
|
2016-09-16 10:46:25 -07:00
|
|
|
<button class="button button-block button-positive" ui-sref="tabs.buyandsell.glidera">OK</button>
|
2016-08-24 07:33:43 -07:00
|
|
|
</div>
|
|
|
|
</ion-content>
|
|
|
|
</ion-view>
|