2022-08-31 15:40:28 -07:00
|
|
|
package auctionconfig
|
|
|
|
|
2022-09-07 16:06:28 -07:00
|
|
|
// Allowed Denoms
|
|
|
|
// note: as a slice, values can't be immutable, but length can be
|
|
|
|
var AllowedAuctionDenoms = [...]string{"uusdc", "uclr"}
|
|
|
|
|
2022-09-04 16:36:57 -07:00
|
|
|
const (
|
|
|
|
// Times
|
2022-09-05 15:17:55 -07:00
|
|
|
AuctionTime = 10 // 10 blocks = ~10-30 seconds
|
|
|
|
|
|
|
|
// Lease Period Requirements (seconds)
|
|
|
|
MinLeasePeriod = 3_600 // 1 hour
|
|
|
|
MaxLeasePeriod = 8_035_200 // 3 months
|
2022-09-04 16:36:57 -07:00
|
|
|
|
2022-09-07 13:25:57 -07:00
|
|
|
// Minimum required staked CLR to be a provider (i.e. to bid)
|
2022-09-07 15:15:49 -07:00
|
|
|
// 500 CLR
|
|
|
|
ProviderMinLockedUClr = 500_000_000
|
2022-09-07 13:25:57 -07:00
|
|
|
// Amount slashed when a provider is offline during an audit
|
2022-09-07 15:15:49 -07:00
|
|
|
// 100 CLR
|
|
|
|
ProviderLockedSlashUClr = 100_000_000
|
2022-09-07 13:25:57 -07:00
|
|
|
|
2022-09-07 15:15:49 -07:00
|
|
|
// Blocks between provider audits
|
|
|
|
// 400 blocks ~400-1200min
|
|
|
|
ProviderAuditFrequency = 400
|
|
|
|
// Blocks before an audit ping must be returned
|
|
|
|
// 3 blocks ~4-12sec
|
|
|
|
ProviderAuditLength = 4
|
2022-09-07 13:25:57 -07:00
|
|
|
|
2022-09-04 16:36:57 -07:00
|
|
|
// Gas Fees
|
|
|
|
AuctionGas = 10
|
|
|
|
)
|