Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Premium #264

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft

Commits on Oct 5, 2024

  1. Configuration menu
    Copy the full SHA
    e0dfd47 View commit details
    Browse the repository at this point in the history
  2. swap: adds premium functionality to peerswap

    This commit adds protocol update and impl of premium.
    * Swap In
        * Responder/Taker requests Premium,
        Maker adds it to Opening Tx (Taker collects Premium in Claim tx)
    * Swap Out
        * Responder/Maker requests Premium
        and Taker tops it up on Claim invoice
         (Maker collects Premium on Claim invoice)
    YusukeShimizu committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    bf35e96 View commit details
    Browse the repository at this point in the history
  3. poll: enable to check the premium rate

    This commit includes the premium rate in the poll message
    so that the premium set for each peer can be confirmed.
    YusukeShimizu committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    d236f4b View commit details
    Browse the repository at this point in the history
  4. swap: adds premium options for commands

    This commit adds premium options.
    Also, the sample settings and document have been updated accordingly.
    YusukeShimizu committed Oct 5, 2024
    Configuration menu
    Copy the full SHA
    620abd2 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2024

  1. test: integration tests for premium

    This commit is to modify and add integration tests
    for the addition of premium.
    YusukeShimizu committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    7886c2e View commit details
    Browse the repository at this point in the history
  2. cln: added display logic for PREMIUM

    Add item to peerSwapPeer to display
    Premium Rate Ppm.
    Set the value retrieved from the poll so that it
    can be checked with the ListPeers command.
    YusukeShimizu committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    a1fe0b1 View commit details
    Browse the repository at this point in the history
  3. swap: correction of swapout in CheckPremiumAmount

    Corrected where to get premium limit at swapout in
    CheckPremiumAmount and OnSwapOutRequestReceived.
    Also, unit tests for CheckPremiumAmount have been added.
    YusukeShimizu committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    9b1d0b0 View commit details
    Browse the repository at this point in the history
  4. cln: rearranged the order of commands

    I rearranged the order of commands for swapin.
    YusukeShimizu committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    2b52ca9 View commit details
    Browse the repository at this point in the history
  5. policy: show premium rate when reloadpolicy

    When the reload policy was done,
    the configuration values were updated, but they were not displayed.
    
    Definitions are being added so that they are displayed.
    YusukeShimizu committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    638736d View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2024

  1. multi: enable per-peer premium configuration

    Allow setting different premium values for BTC and LBTC.
    
    This change also enables users to configure individual premiums for
    each peer, providing more granular control over pricing and
    liquidity.
    
    - Added separate premium fields for BTC and LBTC.
    - Implemented logic to apply peer-specific premiums.
    YusukeShimizu committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    2e68c35 View commit details
    Browse the repository at this point in the history