Smart Contracts #2 Flashcards

1
Q

What is an oracle in smart contracts?

A

A third-party service that fetches and verifies external data for on-chain use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why do smart contracts need oracles?

A

They lack native access to off-chain events like price feeds or sports results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What can go wrong with a bad oracle?

A

False data can trigger incorrect executions and financial losses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define minimal design for smart contracts.

A

Keeping code as simple as possible, focusing only on core functionality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Benefit of minimal design?

A

Fewer lines of code mean fewer bugs and easier auditing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is an emergency stop?

A

A pattern that lets admins pause contract operations in emergencies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Purpose of a rate limiter?

A

It caps the number of times a function can be called to prevent overload.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why use delayed actions in contracts?

A

To introduce a time buffer, allowing intervention before critical changes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Limitation: grey-area handling?

A

Contracts can’t process subjective terms or adapt to unforeseen nuances.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Limitation: legal uncertainty?

A

Code execution doesn’t guarantee legal enforceability under existing laws.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly