From 56c0088de37fd53c01c57e8597e700faed17132e Mon Sep 17 00:00:00 2001 From: diamondhands Date: Tue, 21 Jan 2025 14:16:35 -0800 Subject: [PATCH] wip --- routes/dao_coin_exchange_with_fees.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/routes/dao_coin_exchange_with_fees.go b/routes/dao_coin_exchange_with_fees.go index 87bd3577..1576e4cc 100644 --- a/routes/dao_coin_exchange_with_fees.go +++ b/routes/dao_coin_exchange_with_fees.go @@ -315,6 +315,19 @@ func GetTradingFeesForMarket( "GetTradingFeesForMarket: Problem decoding public key %s: %v", profilePublicKey, err) } + + // Add a special case for the DESO pubkey to pay the Openfund pubkey. + // TODO: We hardcode this for now so we can launch quickly. + if IsDesoPkid(profilePublicKey) { + openfundPkid := "BC1YLj3zNA7hRAqBVkvsTeqw7oi4H6ogKiAFL1VXhZy6pYeZcZ6TDRY" + if params.NetworkType == lib.NetworkType_TESTNET { + openfundPkid = "tBCKWUK6mKhWpT4quLZjM2iPqPMwEWnHuj4Q99vSS4jFRLGeFJ3G3p" + } + return map[string]uint64{ + openfundPkid: 10, + }, false, nil + } + profilePkid := utxoView.GetPKIDForPublicKey(profilePublicKeyBytes) if profilePkid == nil { return nil, false, fmt.Errorf(