Skip to content

Commit

Permalink
Merge pull request #1 from Uthpala/minor-touchups
Browse files Browse the repository at this point in the history
Nits + mainnet
  • Loading branch information
dannydeezy committed Dec 7, 2022
2 parents aa0ff73 + c078985 commit bd5d489
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lnbits/extensions/deezy/templates/deezy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h5 class="text-subtitle1 q-mt-none q-mb-md">
@click="swapLnToBtc.show = true; swapBtcToLn.show = false"
>
<q-tooltip class="bg-grey-8" anchor="bottom left" self="top left">
Send onchain funds offchain (BTC -> LN)
Send lightning btc and receive on-chain btc
</q-tooltip>
</q-btn>
<q-btn
Expand All @@ -27,7 +27,7 @@ <h5 class="text-subtitle1 q-mt-none q-mb-md">
@click="swapBtcToLn.show = true; swapLnToBtc.show = false;"
>
<q-tooltip class="bg-grey-8" anchor="bottom left" self="top left">
Send offchain funds to onchain address (LN -> BTC)
Send on-chain btc and receive via lightning
</q-tooltip>
</q-btn>
</q-card-section>
Expand All @@ -40,7 +40,7 @@ <h6 class="q-mt-none">LIGHTNING BTC -> BTC</h6>
dense
emit-value
v-model.trim="swapLnToBtc.data.amount"
label="Amount"
label="Amount (sats)"
type="number"
></q-input>
<q-input
Expand All @@ -56,7 +56,7 @@ <h6 class="q-mt-none">LIGHTNING BTC -> BTC</h6>
dense
emit-value
v-model.trim="swapLnToBtc.data.on_chain_sats_per_vbyte"
label="On chain fees"
label="On chain fee rate (sats/vbyte)"
min="1"
type="number"
></q-input>
Expand Down Expand Up @@ -162,7 +162,7 @@ <h6 class="q-mt-none">BTC -> LIGHTNING BTC</h6>
</q-card-section>

<q-card-section class="q-pt-none">
Onchain tx id {{ swapLnToBtc.onChainTxId }}
Onchain tx id {{ swapLnToBtc.onchainTxId }}
</q-card-section>

<q-card-actions align="right" class="bg-white text-teal">
Expand Down Expand Up @@ -217,7 +217,7 @@ <h6 class="text-subtitle1 q-my-none">{{SITE_TITLE}} Boltz extension</h6>
if (this.swapLnToBtc.response && !this.swapLnToBtc.invoicePaid ) {
var self = this
let interval = setInterval(() => {
axios.get(`https://api-testnet.deezy.io/v1/swap/lookup?bolt11_invoice=${self.swapLnToBtc.response}`)
axios.get(`https://api.deezy.io/v1/swap/lookup?bolt11_invoice=${self.swapLnToBtc.response}`)
.then(function (response){
if (response.data.on_chain_txid || count > 4) {
self.swapLnToBtc = {
Expand All @@ -236,7 +236,7 @@ <h6 class="text-subtitle1 q-my-none">{{SITE_TITLE}} Boltz extension</h6>
},
sendLnToBtc() {
var self = this
axios.post('https://api-testnet.deezy.io/v1/swap', {
axios.post('https://api.deezy.io/v1/swap', {
amount_sats: parseInt(self.swapLnToBtc.data.amount),
on_chain_address: self.swapLnToBtc.data.on_chain_address,
on_chain_sats_per_vbyte: parseInt(self.swapLnToBtc.data.on_chain_sats_per_vbyte)
Expand All @@ -255,7 +255,7 @@ <h6 class="text-subtitle1 q-my-none">{{SITE_TITLE}} Boltz extension</h6>
},
sendBtcToLn() {
var self = this
axios.post('https://api-testnet.deezy.io/v1/source', {
axios.post('https://api.deezy.io/v1/source', {
lnurl_or_lnaddress: self.swapBtcToLn.data.lnurl_or_lnaddress,
})
.then(function (response) {
Expand Down

0 comments on commit bd5d489

Please sign in to comment.