Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions intent/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (

ocp_transactionpb "github.com/code-payments/ocp-protobuf-api/generated/go/transaction/v1"

ocp_common "github.com/code-payments/ocp-server/ocp/common"
ocp_data "github.com/code-payments/ocp-server/ocp/data"
ocp_intent "github.com/code-payments/ocp-server/ocp/data/intent"
ocp_integration "github.com/code-payments/ocp-server/ocp/integration"
Expand Down Expand Up @@ -35,10 +34,6 @@ func (i *Integration) AllowCreation(ctx context.Context, intentRecord *ocp_inten
return nil

case ocp_intent.SendPublicPayment:
if intentRecord.MintAccount == ocp_common.CoreMintAccount.PublicKey().ToBase58() && !intentRecord.SendPublicPaymentMetadata.IsWithdrawal {
return ocp_transaction.NewIntentDeniedError("core mint account is restricted to withdrawals and swap fundings")
}

return nil

case ocp_intent.ReceivePaymentsPublicly:
Expand Down
Loading