diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md index 252ee28b2..86e002372 100644 --- a/docs/core/proto-docs.md +++ b/docs/core/proto-docs.md @@ -2883,6 +2883,7 @@ Query defines the gRPC querier service. | `successful_bid_end_at` | [google.protobuf.Timestamp](#google.protobuf.Timestamp) | | | | `auto_relisted_count` | [uint64](#uint64) | | | | `collected_amount` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | | | +| `collected_amount_negative` | [bool] | | | | `minimum_bidding_period` | [google.protobuf.Duration](#google.protobuf.Duration) | | | diff --git a/proto/ununifi/nftbackedloan/nftbackedloan.proto b/proto/ununifi/nftbackedloan/nftbackedloan.proto index 28e9cf3b5..ac959fae9 100644 --- a/proto/ununifi/nftbackedloan/nftbackedloan.proto +++ b/proto/ununifi/nftbackedloan/nftbackedloan.proto @@ -68,7 +68,8 @@ message NftListing { ]; uint64 auto_relisted_count = 11; cosmos.base.v1beta1.Coin collected_amount = 12 [(gogoproto.nullable) = false]; - google.protobuf.Duration minimum_bidding_period = 13 [ + bool collected_amount_negative = 13; + google.protobuf.Duration minimum_bidding_period = 14 [ (gogoproto.stdduration) = true, (gogoproto.nullable) = false ]; diff --git a/x/nftbackedloan/keeper/grpc_query_test.go b/x/nftbackedloan/keeper/grpc_query_test.go index aede4741f..eb78533ca 100644 --- a/x/nftbackedloan/keeper/grpc_query_test.go +++ b/x/nftbackedloan/keeper/grpc_query_test.go @@ -76,6 +76,7 @@ func (s *KeeperTestSuite) TestListedNfts() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, NftInfo: types.NftInfo{ Id: "nft2", @@ -98,6 +99,7 @@ func (s *KeeperTestSuite) TestListedNfts() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, NftInfo: types.NftInfo{ Id: "nft5", @@ -120,6 +122,7 @@ func (s *KeeperTestSuite) TestListedNfts() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, NftInfo: types.NftInfo{ Id: "nft6", @@ -157,6 +160,7 @@ func (s *KeeperTestSuite) TestListedNfts() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, NftInfo: types.NftInfo{ Id: "nft7", @@ -192,6 +196,7 @@ func (s *KeeperTestSuite) TestListedNfts() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, NftInfo: types.NftInfo{ Id: "nft2", @@ -214,6 +219,7 @@ func (s *KeeperTestSuite) TestListedNfts() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, NftInfo: types.NftInfo{ Id: "nft5", @@ -236,6 +242,7 @@ func (s *KeeperTestSuite) TestListedNfts() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, NftInfo: types.NftInfo{ Id: "nft6", @@ -258,6 +265,7 @@ func (s *KeeperTestSuite) TestListedNfts() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, NftInfo: types.NftInfo{ Id: "nft7", diff --git a/x/nftbackedloan/keeper/nft_listing.go b/x/nftbackedloan/keeper/nft_listing.go index 44bcdaa57..2624854fb 100644 --- a/x/nftbackedloan/keeper/nft_listing.go +++ b/x/nftbackedloan/keeper/nft_listing.go @@ -207,14 +207,15 @@ func (k Keeper) ListNft(ctx sdk.Context, msg *types.MsgListNft) error { // todo: make test owner := k.nftKeeper.GetOwner(ctx, msg.NftId.ClassId, msg.NftId.NftId) listing := types.NftListing{ - NftId: msg.NftId, - Owner: owner.String(), - State: types.ListingState_LISTING, - BidToken: msg.BidToken, - MinimumDepositRate: msg.MinimumDepositRate, - AutomaticRefinancing: msg.AutomaticRefinancing, - StartedAt: ctx.BlockTime(), - CollectedAmount: sdk.NewCoin(msg.BidToken, sdk.ZeroInt()), + NftId: msg.NftId, + Owner: owner.String(), + State: types.ListingState_LISTING, + BidToken: msg.BidToken, + MinimumDepositRate: msg.MinimumDepositRate, + AutomaticRefinancing: msg.AutomaticRefinancing, + StartedAt: ctx.BlockTime(), + CollectedAmount: sdk.NewCoin(msg.BidToken, sdk.ZeroInt()), + CollectedAmountNegative: false, // todo: add validation. // we should to determine maximum bidding period. MinimumBiddingPeriod: msg.MinimumBiddingPeriod, @@ -639,13 +640,17 @@ func (k Keeper) LiquidationProcessExitsWinner(ctx sdk.Context, collectBids, listing.CollectedAmount = listing.CollectedAmount.Add(collectedDeposit) } - // win price + forfeited deposits - refund bids' deposits - // surplusAmount := k.GetSurplusAmount(refundBids, winnerBid, listing.CollectedAmount) totalInterests := refundBids.TotalInterestAmount(now) if totalInterests.IsNil() { totalInterests = sdk.NewCoin(listing.BidToken, sdk.ZeroInt()) } - // todo: sub total interests from lister's profit + // Sub total interests from lister's profit + if listing.CollectedAmount.IsLT(totalInterests) { + listing.CollectedAmountNegative = true + listing.CollectedAmount = totalInterests.Sub(listing.CollectedAmount) + } else { + listing.CollectedAmount = listing.CollectedAmount.Sub(totalInterests) + } err = k.RefundBids(ctx, refundBids, totalInterests, listing) if err != nil { return err @@ -712,7 +717,12 @@ func (k Keeper) DeliverSuccessfulBids(ctx sdk.Context) { } loan := k.GetDebtByNft(ctx, listing.IdBytes()) - totalPayAmount := listing.CollectedAmount.Add(bid.BidAmount) + totalPayAmount := bid.BidAmount + if listing.CollectedAmountNegative { + totalPayAmount = totalPayAmount.Sub(listing.CollectedAmount) + } else { + totalPayAmount = totalPayAmount.Add(listing.CollectedAmount) + } k.ProcessPaymentWithCommissionFee(ctx, listingOwner, totalPayAmount, loan.Loan, listing.NftId) err = k.DeleteBid(ctx, bid) diff --git a/x/nftbackedloan/keeper/nft_listing_test.go b/x/nftbackedloan/keeper/nft_listing_test.go index 335ff1a0b..7a83398ed 100644 --- a/x/nftbackedloan/keeper/nft_listing_test.go +++ b/x/nftbackedloan/keeper/nft_listing_test.go @@ -38,6 +38,7 @@ func (suite *KeeperTestSuite) TestNftListingBasics() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, { NftId: types.NftIdentifier{ @@ -57,6 +58,7 @@ func (suite *KeeperTestSuite) TestNftListingBasics() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, { NftId: types.NftIdentifier{ @@ -76,6 +78,7 @@ func (suite *KeeperTestSuite) TestNftListingBasics() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, { NftId: types.NftIdentifier{ @@ -95,6 +98,7 @@ func (suite *KeeperTestSuite) TestNftListingBasics() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, { NftId: types.NftIdentifier{ @@ -114,6 +118,7 @@ func (suite *KeeperTestSuite) TestNftListingBasics() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, } @@ -1674,6 +1679,7 @@ func (suite *KeeperTestSuite) TestLiquidationProcessExitsWinner() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, winnerBid: types.NftBid{ Id: types.BidId{ @@ -1717,6 +1723,7 @@ func (suite *KeeperTestSuite) TestLiquidationProcessExitsWinner() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, }, nil, @@ -1787,6 +1794,7 @@ func (suite *KeeperTestSuite) TestLiquidationProcessExitsWinner() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, winnerBid: types.NftBid{ Id: types.BidId{ @@ -1873,6 +1881,7 @@ func (suite *KeeperTestSuite) TestLiquidationProcessExitsWinner() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, }, nil, @@ -1965,6 +1974,7 @@ func (suite *KeeperTestSuite) TestLiquidationProcessExitsWinner() { Denom: "uguu", Amount: sdk.ZeroInt(), }, + CollectedAmountNegative: false, }, winnerBid: types.NftBid{ Id: types.BidId{ @@ -2051,6 +2061,7 @@ func (suite *KeeperTestSuite) TestLiquidationProcessExitsWinner() { Denom: "uguu", Amount: sdk.NewInt(50), }, + CollectedAmountNegative: false, }, }, nil, diff --git a/x/nftbackedloan/types/nftbackedloan.pb.go b/x/nftbackedloan/types/nftbackedloan.pb.go index 258c0580c..9f9f87ce7 100644 --- a/x/nftbackedloan/types/nftbackedloan.pb.go +++ b/x/nftbackedloan/types/nftbackedloan.pb.go @@ -337,19 +337,20 @@ func (m *NftInfo) GetUriHash() string { } type NftListing struct { - NftId NftIdentifier `protobuf:"bytes,1,opt,name=nft_id,json=nftId,proto3" json:"nft_id"` - Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` - State ListingState `protobuf:"varint,3,opt,name=state,proto3,enum=ununifi.nftbackedloan.ListingState" json:"state,omitempty"` - BidToken string `protobuf:"bytes,4,opt,name=bid_token,json=bidToken,proto3" json:"bid_token,omitempty"` - MinimumDepositRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=minimum_deposit_rate,json=minimumDepositRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"minimum_deposit_rate"` - AutomaticRefinancing bool `protobuf:"varint,6,opt,name=automatic_refinancing,json=automaticRefinancing,proto3" json:"automatic_refinancing,omitempty"` - StartedAt time.Time `protobuf:"bytes,7,opt,name=started_at,json=startedAt,proto3,stdtime" json:"started_at" yaml:"started_at"` - EndAt time.Time `protobuf:"bytes,8,opt,name=end_at,json=endAt,proto3,stdtime" json:"end_at" yaml:"end_at"` - FullPaymentEndAt time.Time `protobuf:"bytes,9,opt,name=full_payment_end_at,json=fullPaymentEndAt,proto3,stdtime" json:"full_payment_end_at" yaml:"full_payment_end_at"` - SuccessfulBidEndAt time.Time `protobuf:"bytes,10,opt,name=successful_bid_end_at,json=successfulBidEndAt,proto3,stdtime" json:"successful_bid_end_at" yaml:"successful_bid_end_at"` - AutoRelistedCount uint64 `protobuf:"varint,11,opt,name=auto_relisted_count,json=autoRelistedCount,proto3" json:"auto_relisted_count,omitempty"` - CollectedAmount types.Coin `protobuf:"bytes,12,opt,name=collected_amount,json=collectedAmount,proto3" json:"collected_amount"` - MinimumBiddingPeriod time.Duration `protobuf:"bytes,13,opt,name=minimum_bidding_period,json=minimumBiddingPeriod,proto3,stdduration" json:"minimum_bidding_period"` + NftId NftIdentifier `protobuf:"bytes,1,opt,name=nft_id,json=nftId,proto3" json:"nft_id"` + Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` + State ListingState `protobuf:"varint,3,opt,name=state,proto3,enum=ununifi.nftbackedloan.ListingState" json:"state,omitempty"` + BidToken string `protobuf:"bytes,4,opt,name=bid_token,json=bidToken,proto3" json:"bid_token,omitempty"` + MinimumDepositRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=minimum_deposit_rate,json=minimumDepositRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"minimum_deposit_rate"` + AutomaticRefinancing bool `protobuf:"varint,6,opt,name=automatic_refinancing,json=automaticRefinancing,proto3" json:"automatic_refinancing,omitempty"` + StartedAt time.Time `protobuf:"bytes,7,opt,name=started_at,json=startedAt,proto3,stdtime" json:"started_at" yaml:"started_at"` + EndAt time.Time `protobuf:"bytes,8,opt,name=end_at,json=endAt,proto3,stdtime" json:"end_at" yaml:"end_at"` + FullPaymentEndAt time.Time `protobuf:"bytes,9,opt,name=full_payment_end_at,json=fullPaymentEndAt,proto3,stdtime" json:"full_payment_end_at" yaml:"full_payment_end_at"` + SuccessfulBidEndAt time.Time `protobuf:"bytes,10,opt,name=successful_bid_end_at,json=successfulBidEndAt,proto3,stdtime" json:"successful_bid_end_at" yaml:"successful_bid_end_at"` + AutoRelistedCount uint64 `protobuf:"varint,11,opt,name=auto_relisted_count,json=autoRelistedCount,proto3" json:"auto_relisted_count,omitempty"` + CollectedAmount types.Coin `protobuf:"bytes,12,opt,name=collected_amount,json=collectedAmount,proto3" json:"collected_amount"` + CollectedAmountNegative bool `protobuf:"varint,13,opt,name=collected_amount_negative,json=collectedAmountNegative,proto3" json:"collected_amount_negative,omitempty"` + MinimumBiddingPeriod time.Duration `protobuf:"bytes,14,opt,name=minimum_bidding_period,json=minimumBiddingPeriod,proto3,stdduration" json:"minimum_bidding_period"` } func (m *NftListing) Reset() { *m = NftListing{} } @@ -462,6 +463,13 @@ func (m *NftListing) GetCollectedAmount() types.Coin { return types.Coin{} } +func (m *NftListing) GetCollectedAmountNegative() bool { + if m != nil { + return m.CollectedAmountNegative + } + return false +} + func (m *NftListing) GetMinimumBiddingPeriod() time.Duration { if m != nil { return m.MinimumBiddingPeriod @@ -856,89 +864,91 @@ func init() { } var fileDescriptor_9e729891a263bcae = []byte{ - // 1307 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcb, 0x6e, 0xdb, 0x46, - 0x17, 0x36, 0x75, 0xf7, 0x51, 0x6c, 0x29, 0x13, 0x3b, 0xbf, 0xec, 0xe4, 0x97, 0x0d, 0xb6, 0x08, - 0xdc, 0x16, 0xa1, 0x10, 0x67, 0x51, 0xf4, 0x82, 0xb6, 0x96, 0x69, 0x37, 0x4a, 0x04, 0x25, 0xa5, - 0x62, 0xf4, 0x82, 0x02, 0x04, 0x45, 0x8e, 0xe4, 0x41, 0xc4, 0x19, 0x85, 0x1c, 0x36, 0xc9, 0xa6, - 0xcf, 0x90, 0x5d, 0xfb, 0x16, 0xdd, 0xf4, 0x21, 0xb2, 0x29, 0x10, 0x74, 0x51, 0x04, 0x5d, 0xb8, - 0x6d, 0xfc, 0x06, 0x79, 0x82, 0x62, 0x2e, 0x94, 0x64, 0xc3, 0xae, 0xe5, 0xc0, 0x2b, 0xeb, 0xf0, - 0x9c, 0xf3, 0x9d, 0xeb, 0x7c, 0x33, 0x86, 0xf7, 0x12, 0x9a, 0x50, 0xd2, 0x27, 0x0d, 0xda, 0xe7, - 0x3d, 0xcf, 0x7f, 0x84, 0x83, 0x21, 0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x19, 0xa0, 0xbc, - 0xb9, 0x62, 0xe9, 0x46, 0x88, 0xae, 0x59, 0xba, 0x6b, 0xd6, 0x36, 0x23, 0x54, 0x7b, 0x49, 0x63, - 0x73, 0x0b, 0xca, 0x6d, 0x12, 0x73, 0x1c, 0x6c, 0x8b, 0x2e, 0xfc, 0x57, 0x7b, 0xfe, 0x07, 0x45, - 0x95, 0x61, 0x5c, 0xcb, 0xac, 0x67, 0x45, 0x09, 0x32, 0x6c, 0x6c, 0xee, 0x42, 0x51, 0x64, 0x45, - 0xfb, 0x0c, 0x2d, 0x42, 0x66, 0xec, 0x98, 0x21, 0x01, 0xaa, 0x42, 0x36, 0x89, 0x88, 0x2e, 0x59, - 0xfc, 0x14, 0x01, 0x92, 0x88, 0xb8, 0xfb, 0x5e, 0xbc, 0x5f, 0xcb, 0xaa, 0x00, 0x49, 0x44, 0xee, - 0x78, 0xf1, 0xbe, 0xf9, 0x5b, 0x11, 0xa0, 0xd3, 0xe7, 0x22, 0x1d, 0x42, 0x07, 0x17, 0xd1, 0x91, - 0x25, 0xc8, 0xb3, 0x27, 0x74, 0xdc, 0x73, 0x25, 0xa0, 0x8f, 0x20, 0x1f, 0x73, 0x8f, 0x63, 0x19, - 0x7f, 0x71, 0xf3, 0x9d, 0x53, 0x70, 0x75, 0x1e, 0x5d, 0x61, 0xea, 0x28, 0x0f, 0x74, 0x0d, 0xe6, - 0x7b, 0x24, 0x70, 0x39, 0x7b, 0x84, 0x69, 0x2d, 0x27, 0x41, 0x4b, 0x3d, 0x12, 0x3c, 0x14, 0x32, - 0xa2, 0xb0, 0x14, 0x12, 0x4a, 0xc2, 0x24, 0x74, 0x03, 0x3c, 0x62, 0x31, 0xe1, 0x6e, 0x24, 0xc2, - 0xe4, 0x85, 0x5d, 0xf3, 0x53, 0x91, 0xd8, 0x9f, 0x07, 0x6b, 0x37, 0x06, 0x84, 0xef, 0x27, 0x3d, - 0xcb, 0x67, 0xa1, 0x5e, 0x55, 0xfd, 0xe7, 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d4, 0x25, 0x87, 0x10, 0x2c, 0x76, 0xf7, 0xb6, 0xb7, 0x77, 0xba, 0xdd, - 0xdd, 0xbd, 0xb6, 0xdb, 0x6c, 0xd9, 0xd5, 0x7c, 0xf3, 0xce, 0x8b, 0xd7, 0x75, 0xe3, 0xe5, 0xeb, - 0xba, 0xf1, 0xf7, 0xeb, 0xba, 0xf1, 0xfc, 0xb0, 0x3e, 0xf7, 0xf2, 0xb0, 0x3e, 0xf7, 0xea, 0xb0, - 0x3e, 0xf7, 0x9d, 0x35, 0xb5, 0xca, 0x7b, 0x74, 0x8f, 0x92, 0x5d, 0xd2, 0xf0, 0xf7, 0x3d, 0x42, - 0x1b, 0x4f, 0x8f, 0xfd, 0x47, 0x27, 0xd7, 0xba, 0x57, 0x90, 0xb3, 0xb9, 0xfd, 0x6f, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x0b, 0xcc, 0xbb, 0xdc, 0xf7, 0x0d, 0x00, 0x00, + // 1330 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcd, 0x6e, 0xdb, 0x46, + 0x10, 0x36, 0xf5, 0xef, 0x51, 0x2c, 0x29, 0x1b, 0x3b, 0x91, 0x9d, 0x54, 0x36, 0xd8, 0x22, 0x70, + 0x5b, 0x84, 0x42, 0x9c, 0x43, 0xd1, 0xb4, 0x68, 0x6b, 0x99, 0x76, 0xa3, 0x44, 0x50, 0x52, 0x2a, + 0x46, 0x7f, 0x50, 0x80, 0xa0, 0xc8, 0x95, 0xbc, 0x88, 0xb8, 0x54, 0xc8, 0x65, 0x7e, 0x2e, 0xbd, + 0xf7, 0x96, 0x5b, 0xfb, 0x16, 0xbd, 0xf4, 0x21, 0x72, 0x0c, 0x7a, 0x28, 0x82, 0x1e, 0xdc, 0x36, + 0x7e, 0x83, 0x3c, 0x41, 0xb1, 0x3f, 0x94, 0x64, 0xc1, 0xae, 0xa5, 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, 0xba, 0xc4, 0xf3, 0x70, 0xa8, 0xc0, 0xd5, 0x4a, 0xff, 0x09, 0x32, 0xad, 0xc0, 0xa1, 0x68, + 0xfb, 0x5d, 0xc0, 0x1b, 0x99, 0x97, 0x87, 0xeb, 0x0b, 0x49, 0x8a, 0x5b, 0x90, 0xe1, 0x2e, 0x22, + 0x41, 0x71, 0x6b, 0xd5, 0x50, 0x8d, 0xe0, 0x5d, 0x33, 0x54, 0xd7, 0x8c, 0x9d, 0x80, 0x50, 0x15, + 0x25, 0x9c, 0xf5, 0x6d, 0x28, 0xb6, 0x48, 0xc4, 0xb0, 0xb7, 0xc3, 0xbb, 0xf0, 0x7f, 0xed, 0xb9, + 0x02, 0x79, 0x59, 0x61, 0x54, 0x4d, 0x6d, 0xa4, 0xf9, 0x16, 0x44, 0xda, 0x48, 0xdf, 0x83, 0x3c, + 0xaf, 0x8a, 0xf6, 0x02, 0x54, 0x82, 0xd4, 0x28, 0x30, 0x45, 0x3c, 0x54, 0x81, 0x74, 0x1c, 0x12, + 0xb5, 0x65, 0xfe, 0x93, 0x27, 0x88, 0x43, 0x62, 0x1f, 0x38, 0xd1, 0x41, 0x35, 0x2d, 0x13, 0xc4, + 0x21, 0xb9, 0xe3, 0x44, 0x07, 0xfa, 0xcf, 0x05, 0x80, 0x76, 0x8f, 0xf1, 0x72, 0x08, 0xed, 0x9f, + 0x47, 0x47, 0x96, 0x21, 0x1b, 0x3c, 0xa5, 0xa3, 0x9e, 0xcb, 0x05, 0xfa, 0x14, 0xb2, 0x11, 0x73, + 0x18, 0x16, 0xf9, 0x4b, 0x5b, 0xef, 0x9f, 0x82, 0xab, 0xea, 0xe8, 0x70, 0x57, 0x4b, 0x46, 0xa0, + 0xab, 0xb0, 0xd8, 0x25, 0x9e, 0xcd, 0x82, 0x47, 0x98, 0x56, 0x33, 0x02, 0xb4, 0xd0, 0x25, 0xde, + 0x43, 0xbe, 0x46, 0x14, 0x96, 0x7d, 0x42, 0x89, 0x1f, 0xfb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 0xe8, 0x13, 0x40, 0x64, 0x9e, 0x0a, 0xb7, 0x3c, 0x90, 0x86, 0x5d, 0x91, 0xf2, 0x29, 0xac, 0x44, + 0xb1, 0xeb, 0xe2, 0x28, 0xea, 0xc5, 0x03, 0x9b, 0xcf, 0x59, 0x25, 0x85, 0x33, 0x93, 0x6e, 0xaa, + 0xa4, 0xd7, 0x54, 0x97, 0x4e, 0x82, 0x91, 0x69, 0xd1, 0xd8, 0xd6, 0x20, 0x9e, 0x4c, 0x6c, 0xc0, + 0x25, 0x3e, 0x2b, 0x3b, 0xc4, 0x03, 0x71, 0x14, 0x6d, 0x37, 0x88, 0x29, 0xab, 0x16, 0x37, 0xb4, + 0xcd, 0x8c, 0x75, 0x91, 0x9b, 0x2c, 0x65, 0xd9, 0xe1, 0x06, 0x74, 0x17, 0x2a, 0x6e, 0x30, 0x18, + 0x60, 0x57, 0x4c, 0xc2, 0x17, 0xce, 0x17, 0x66, 0x3b, 0xf4, 0xe5, 0x51, 0xe0, 0xb6, 0x88, 0x43, + 0xb7, 0x61, 0x75, 0x1a, 0xcb, 0xa6, 0xb8, 0xef, 0x30, 0xf2, 0x04, 0x57, 0x97, 0x04, 0x91, 0xae, + 0x4c, 0xc5, 0xb4, 0x95, 0x19, 0x7d, 0x0f, 0x97, 0x13, 0xc2, 0x73, 0x35, 0x23, 0xb4, 0x6f, 0x0f, + 0x71, 0x48, 0x02, 0xaf, 0x5a, 0x52, 0xd5, 0x4c, 0x77, 0xcc, 0x54, 0xc2, 0xde, 0x28, 0xf0, 0x6a, + 0x7e, 0xe5, 0x0d, 0x49, 0xce, 0x4c, 0x43, 0x22, 0x3c, 0x10, 0x00, 0xfa, 0x6b, 0x0d, 0x16, 0x1b, + 0x41, 0x18, 0x06, 0x4f, 0x39, 0x69, 0x3f, 0x81, 0x9c, 0xda, 0xa6, 0x36, 0xdb, 0x36, 0x95, 0x3b, + 0xfa, 0x06, 0x96, 0x87, 0x0e, 0xf1, 0x6c, 0x42, 0x19,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0xee, 0xa3, 0x22, 0xe4, 0xf7, 0xdb, 0xf7, 0xda, 0xf7, + 0xbf, 0x6d, 0x57, 0x16, 0xf8, 0xa2, 0xd5, 0xec, 0x3c, 0x6c, 0xb6, 0xbf, 0xae, 0x68, 0x7c, 0xd1, + 0x68, 0x9a, 0x26, 0x5f, 0xa4, 0xd0, 0x25, 0x28, 0x9b, 0xbb, 0x3b, 0x4d, 0x73, 0xd7, 0xb4, 0x3b, + 0xbb, 0xad, 0x16, 0xff, 0x98, 0x46, 0x65, 0x28, 0xee, 0xb6, 0x4d, 0x3b, 0x09, 0xc9, 0x20, 0x04, + 0xa5, 0xce, 0xfe, 0xce, 0xce, 0x6e, 0xa7, 0xb3, 0xb7, 0xdf, 0xb2, 0x1b, 0x4d, 0xb3, 0x92, 0x6d, + 0xdc, 0x79, 0xf9, 0xa6, 0xa6, 0xbd, 0x7a, 0x53, 0xd3, 0xfe, 0x79, 0x53, 0xd3, 0x5e, 0x1c, 0xd5, + 0x16, 0x5e, 0x1d, 0xd5, 0x16, 0x5e, 0x1f, 0xd5, 0x16, 0x7e, 0x30, 0x26, 0xa8, 0xbc, 0x4f, 0xf7, + 0x29, 0xd9, 0x23, 0x75, 0xf7, 0xc0, 0x21, 0xb4, 0xfe, 0x6c, 0xea, 0xbf, 0x41, 0x41, 0xeb, 0x6e, + 0x4e, 0xcc, 0xe6, 0xd6, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x39, 0x6d, 0x3c, 0xe8, 0x33, 0x0e, + 0x00, 0x00, } func (m *NftIdentifier) Marshal() (dAtA []byte, err error) { @@ -1173,7 +1183,17 @@ func (m *NftListing) MarshalToSizedBuffer(dAtA []byte) (int, error) { i -= n4 i = encodeVarintNftbackedloan(dAtA, i, uint64(n4)) i-- - dAtA[i] = 0x6a + dAtA[i] = 0x72 + if m.CollectedAmountNegative { + i-- + if m.CollectedAmountNegative { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x68 + } { size, err := m.CollectedAmount.MarshalToSizedBuffer(dAtA[:i]) if err != nil { @@ -1765,6 +1785,9 @@ func (m *NftListing) Size() (n int) { } l = m.CollectedAmount.Size() n += 1 + l + sovNftbackedloan(uint64(l)) + if m.CollectedAmountNegative { + n += 2 + } l = github_com_cosmos_gogoproto_types.SizeOfStdDuration(m.MinimumBiddingPeriod) n += 1 + l + sovNftbackedloan(uint64(l)) return n @@ -2879,6 +2902,26 @@ func (m *NftListing) Unmarshal(dAtA []byte) error { } iNdEx = postIndex case 13: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CollectedAmountNegative", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowNftbackedloan + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CollectedAmountNegative = bool(v != 0) + case 14: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MinimumBiddingPeriod", wireType) }