Interface CurrencyExchange
public interface CurrencyExchange
-
Method Summary
Modifier and TypeMethodDescriptionclearFixedRate(EconomyContext context, Currency from, Currency to) exchange(EconomyContext context, Account account, Currency from, Currency to, BigDecimal amount, net.kyori.adventure.text.Component reason) liquidity(EconomyContext context, Currency currency) provideLiquidity(EconomyContext context, Account provider, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason) rate(EconomyContext context, Currency from, Currency to) setFixedRate(EconomyContext context, Currency from, Currency to, BigDecimal rate) withdrawLiquidity(EconomyContext context, Account provider, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason)
-
Method Details
-
rate
-
exchange
CompletableFuture<TransactionResult> exchange(EconomyContext context, Account account, Currency from, Currency to, BigDecimal amount, net.kyori.adventure.text.Component reason) -
liquidity
-
provideLiquidity
CompletableFuture<TransactionResult> provideLiquidity(EconomyContext context, Account provider, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason) -
withdrawLiquidity
CompletableFuture<TransactionResult> withdrawLiquidity(EconomyContext context, Account provider, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason) -
setFixedRate
CompletableFuture<Void> setFixedRate(EconomyContext context, Currency from, Currency to, BigDecimal rate) -
clearFixedRate
-