Skip to content

Commit

Permalink
Remove atomic swap limit (#441)
Browse files Browse the repository at this point in the history
* Remove atomic swap limit

Limit of 2000 HNS for finalize with payment significantly reduces the usefulness of the feature, this PR removes the limit.

* remove frontend warning when claiming name with payment over 2000

Co-authored-by: Chi Kei Chan <chikeichan@gmail.com>
  • Loading branch information
altslash and chikeichan committed Jan 17, 2022
1 parent 2d6b9a5 commit a7cdc4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions app/background/wallet/service.js
Expand Up @@ -779,9 +779,6 @@ class WalletService {

// price is in WHOLE HNS!
finalizeWithPayment = async (name, fundingAddr, nameReceiveAddr, price) => {
if (price > 2000) {
throw new Error('Refusing to create a transfer for more than 2000 HNS.');
}

const {wdb} = this.node;
const wallet = await wdb.get(this.name);
Expand Down
4 changes: 1 addition & 3 deletions app/pages/MyDomain/FinalizeWithPaymentModal.js
Expand Up @@ -91,9 +91,7 @@ export class FinalizeWithPaymentModal extends Component {

renderForm() {
const {t} = this.context;
const isValid = !!this.state.price && (
!!this.state.price && Number(this.state.price) <= 2000
);
const isValid = !!this.state.price;

return (
<>
Expand Down

0 comments on commit a7cdc4b

Please sign in to comment.