Compare commits

..

3 commits

Author SHA1 Message Date
nahuhh
072dd22edc add placeorder script 2024-10-03 12:45:18 +00:00
nahuhh
111c91c6a8 placeorder_patch 2024-10-03 11:44:35 +00:00
nahuhh
d7224b0442 friendly update coincurve 2024-10-03 11:33:38 +00:00
2 changed files with 4 additions and 5 deletions

View file

@ -120,7 +120,7 @@ book_min() {
set_fiat() { set_fiat() {
echo -e "[1] USD [default]\n[2] EUR\n[3] CAD\n[4] AUD\n[5] CUSTOM" echo -e "[1] USD [default]\n[2] EUR\n[3] CAD\n[4] AUD\n[5] CUSTOM"
read -p 'Select an option ' fiat read -p 'Select an option: ' fiat_select
case $fiat_select in case $fiat_select in
1) FIAT=USD 1) FIAT=USD
fiat=usd fiat=usd
@ -149,8 +149,8 @@ coin_price() {
THEIR_FIAT=$(curl -s "https://api.coingecko.com/api/v3/simple/price?ids=$THEIR_COIN,$YOUR_COIN&vs_currencies=$fiat" | jq -r ".$THEIR_COIN.$fiat") THEIR_FIAT=$(curl -s "https://api.coingecko.com/api/v3/simple/price?ids=$THEIR_COIN,$YOUR_COIN&vs_currencies=$fiat" | jq -r ".$THEIR_COIN.$fiat")
TAKER_RATE=$(echo "scale=8;( $THEIR_FIAT / $YOUR_FIAT )" | bc | sed -e 's/^-\./-0./' -e 's/^\./0./') TAKER_RATE=$(echo "scale=8;( $THEIR_FIAT / $YOUR_FIAT )" | bc | sed -e 's/^-\./-0./' -e 's/^\./0./')
MAKER_RATE=$(echo "scale=8;(1 / $TAKER_RATE /1)" | bc | sed -e 's/^-\./-0./' -e 's/^\./0./') MAKER_RATE=$(echo "scale=8;(1 / $TAKER_RATE /1)" | bc | sed -e 's/^-\./-0./' -e 's/^\./0./')
$cy"$THEIR_FIAT $FIAT$nc2/$grn2$theircoin$nc2 which is $red2$TAKER_RATE $yourcoin$nc2/$grn2$theircoin$nc2" $cy"$THEIR_FIAT $FIAT$nc2/$grn2$theircoin$nc2 which is $red2$TAKER_RATE $yourcoin$nc2/$grn2$theircoin$nc2\n"
$cy"$YOUR_FIAT $FIAT$nc2/$red2$yourcoin$nc2 which is $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2" $cy"$YOUR_FIAT $FIAT$nc2/$red2$yourcoin$nc2 which is $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2\n";
} }
buy_sell() { buy_sell() {
@ -188,7 +188,7 @@ buy_sell() {
echo -e "Rate to be paid: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2\n" echo -e "Rate to be paid: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2\n"
;; ;;
2) read -p "How much YOUR $yourcapital do you want to SELL [example: 1] " AMOUNT 2) read -p "How much YOUR $yourcapital do you want to SELL [example: 1] " AMOUNT
$cy "\n4. Rate to charge:\n";$nc echo -e "\n4. Rate to charge:\n"
echo -e "[1] LIMIT: Specific Crypto Rate $grn2$theircoin$nc2/$red2$yourcoin$nc2\n[2] LIMIT: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin $cy2+/- CUSTOM Percent$nc2\n[3] LIMIT: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2\n[4] MARKET +$PERCENT%: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin $cy2+ $PERCENT%$nc2\n[ENTER] LIMIT: Specific rate $cy2$FIAT$nc2/$red2$yourcoin$nc2" echo -e "[1] LIMIT: Specific Crypto Rate $grn2$theircoin$nc2/$red2$yourcoin$nc2\n[2] LIMIT: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin $cy2+/- CUSTOM Percent$nc2\n[3] LIMIT: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin$nc2\n[4] MARKET +$PERCENT%: $grn2$MAKER_RATE $theircoin$nc2/$red2$yourcoin $cy2+ $PERCENT%$nc2\n[ENTER] LIMIT: Specific rate $cy2$FIAT$nc2/$red2$yourcoin$nc2"
read -p 'Select an option: ' RATESEL read -p 'Select an option: ' RATESEL
case $RATESEL in case $RATESEL in

View file

@ -30,7 +30,6 @@ fi
$SWAP_DATADIR/venv/bin/pip install . $SWAP_DATADIR/venv/bin/pip install .
# BasicSwap # BasicSwap
git clone basicswap
# Switch to new repo: basicswap/basicswap # Switch to new repo: basicswap/basicswap
cd $SWAP_DATADIR/basicswap cd $SWAP_DATADIR/basicswap
git remote set-url origin https://github.com/basicswap/basicswap git remote set-url origin https://github.com/basicswap/basicswap