Skip to content

Commit

Permalink
Duplicate JsLibSwapProvider into BitcoinSwapProvider to unify swap lo…
Browse files Browse the repository at this point in the history
…gic - abstraction next
  • Loading branch information
monokh committed Jul 26, 2019
1 parent 422f0b3 commit d33d6f1
Show file tree
Hide file tree
Showing 5 changed files with 491 additions and 190 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export default class BitcoinBitcoinJsLibSwapProvider extends Provider {
swapVout.vSat = swapVout.value * 1e8

const txb = new bitcoin.TransactionBuilder(network)
txb.setVersion(1)

if (!isRedeem) txb.setLockTime(expiration)

Expand Down
Loading

0 comments on commit d33d6f1

Please sign in to comment.