xmr-btc-swap/src-tauri
Mohan 2ec6323c45
feat(asb): Disabled-by-default developer tip (#566)
* wip

* filter out destinations with zero amount

* add changelog entry

* do not use subtract_fee_from_outputs for multi lock tx

* make developer tip address configurable

* create developer_tip_monero_wallet in integration test

* add happy_path_alice_developer_tip integration test

* run happy_path_alice_developer_tip integration test in ci

* make stub tests

* document `developer_tip` and add log at startup

* take tip consideration when crafting quote

* remove double g++

* fix bash

* full stack trace in logs

* add DEFAULT_DEVELOPER_TIP_ADDRESS_STAGENET

* fix issue where --testnet could not be detected

* triple bitcoin testnet timelocks

* assert hardcoded developer tip address is on the correct network

* fix: interpret developer_tip = 0 as no tip in log at startup

* change developer_tip type to non-option, clamp tips below 100_00 piconero to 0

* create dedidcated TipConfig struct to replace (Decimal, monero::Address)

* small refactorings

* move tip config init out of of function call params

* refactoring

* unit tests wrong arguments passed in

* document `developer_tip` allows configuring your maker to donate a small part of swaps to funding further development of the project. This is disabled by default. You can manually enable it if you choose to do so. Set it to a number between 0 and 1. Setting it to 0.02 will donate 2% of each swap to the donation address of the project. The tip is sent by adding an additional output the Monero lock transaction of a swap. This means this will not impact document `maker.developer_tip` in docs/pages/becoming_a_maker/overview.mdx

* do not panic if cxx_addrs / cxx_amounts is null

* formatting, full error stack trace in swap/src/asb/event_loop.rs when we cannot construct a quote

* increase MIN_USEFUL_TIP_AMOUNT_PICONERO to 30m piconero (usd), correct params in unit tests

* prompt for developer_tip in orchestrator and asb wizard

* just fmt

* fmt

* address comments

* fmt

* spelling mistakes

---------

Co-authored-by: binarybaron <binarybaron@mail.mail>
2025-09-24 13:07:24 +02:00
..
capabilities feat(asb): Disabled-by-default developer tip (#566) 2025-09-24 13:07:24 +02:00
gen feat(monero-sys): Build system (#500) 2025-08-27 16:45:59 +02:00
icons rebranding: eigenwallet (#461) 2025-07-17 16:31:29 +02:00
src feat(monero-sys): Build system (#500) 2025-08-27 16:45:59 +02:00
.gitignore feat(monero-sys): Build system (#500) 2025-08-27 16:45:59 +02:00
build.rs feat(monero-sys): Build system (#500) 2025-08-27 16:45:59 +02:00
Cargo.toml Prepare release 3.0.2 (#575) 2025-09-21 04:06:46 -04:00
tauri.conf.json Prepare release 3.0.2 (#575) 2025-09-21 04:06:46 -04:00
tauri.windows.conf.json fix tauri missing libwinpthread-1.dll 2025-09-19 02:48:53 +02:00